10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
ls -ltrq res.file
-rwxrwxr-x 1 ora install 4278 Nov 30 07:19 res.file
$ more test.sh
source res.file
$ ./test.sh
./test.sh: .: res.file: cannot open
$ id
uid=600000014(ora) gid=63855(install)
uname -a
SunOS mymac 5.11 11.2 sun4v sparc sun4v
The same thing works fine on a... (7 Replies)
Discussion started by: mohtashims
7 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am new to shell scripting. I need a bash shell scripts which search and grep a parameter value from input.txt file and insert it in between two semicolon of second line of output.txt file.
For example
The shell script search an IP address as parameter value from input.txt ... (2 Replies)
Discussion started by: sunilkumarsinha
2 Replies
3. Programming
Hello,
I am writting a procedure in shell script as,
set serveroutput on
declare
date_gen DATE := $DATEGEN;
begin
INSERT INTO TBL1 ( EMPNAME,EMPID,EMPBDATE)
VALUES($EMPNAME,$EMPID,TO_DATE(date_gen,'YYYY-MM-DD'));
end;
/
Where DATEGEN is unix string variable which I need to use into... (10 Replies)
Discussion started by: Poonamol
10 Replies
4. Shell Programming and Scripting
Hi, I have this code:
#Convert epoch2date
getdate()
{
perl -e '
use POSIX qw(strftime);
$mydate = strftime "%c", localtime($ARGV);
print $mydate; ' $1
}
lsuser -a time_last_login gecos $username |awk '{print $1,$2,$3,$4}'|sed -e 's/gecos=/ Nombre: /' -e 's/time... (2 Replies)
Discussion started by: iga3725
2 Replies
5. Shell Programming and Scripting
Hello to all,
I am looking for a way to display only the names of function (calls & definition) of a C++ source code.There is already a post related to this, but the script is to find the functions using a specific variable, and the replies are not that convincing since they cannot be used for... (2 Replies)
Discussion started by: frozensmilz
2 Replies
6. Shell Programming and Scripting
Hi all,
OS: Solaris 10
I've written a script to scan the oratab file and give me a list of Oracle SIDs to choose from, and obviously in order to set the ORACLE_SID environment variable from within a script for the current shell, the script must be run as a source file.
When I run it as a... (1 Reply)
Discussion started by: longjon
1 Replies
7. Shell Programming and Scripting
Greetings to all.I am new to the forum as well as to UNIX as well.I have a jsp file which has the following
selectedStartMonth = request.getParameter( "startMonth" );
selectedStartDay = request.getParameter( "startDay" );
selectedStartYear = request.getParameter( "startYear" );... (3 Replies)
Discussion started by: 20033716
3 Replies
8. Shell Programming and Scripting
Hi ,
I have a text file text.txt which contains values as
ULTRA,OTHERS,Mumbai,16912
ULTIMATE,OTHERS,Mumbai,16913
ULTIMATIUM,OTHERS,Mumbai,16914
I want to read the file line by line and create insert scripts like
INSERT INTO TAB ( DESC,PLACE,NUMBER ) VALUES... (3 Replies)
Discussion started by: ultimatix
3 Replies
9. Shell Programming and Scripting
Hi
I am having a script which sets the application environment. In this script i am sourcing the applications env file, when i am debugging the script i see its executing all the environment values and all the variable values are set properply.
Once this main shell script executes, then... (4 Replies)
Discussion started by: umakanthly
4 Replies
10. Shell Programming and Scripting
Hi all,
Is there a tool to tidy up shell script source file and reformat it. Preferably I am looking for a perfect tool to do this.
Also I have heard it is possible to do with emacs editor but unfortunately it is looking very different and new from vi. Emacs is new to me and I could not find... (1 Reply)
Discussion started by: meharo
1 Replies