7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am running under ubuntu14.04 with php5. When I run below php, it creates a token, then adds axaxax and bxbxbx into pc database, and at last, kills created token.
What I am trying to do is to add userid and password read from a file. I do not wish to enter username and password manually.... (3 Replies)
Discussion started by: baris35
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a script file which has some simple commands. I want these commands to be executed based on the input. Ia m good with IF statement also. At the end it has to be based on incoming value. Example
CASE 1 :
Execute some commands where Input value as 1
CASE 2 :
Execute... (5 Replies)
Discussion started by: vrupatel
5 Replies
3. Shell Programming and Scripting
Hello.
I am new this site as well as new to shell scripting and this is my first form... Please help me with the following shell script.
I am executing a shell script to run every 15 min (scheduled in cronjob) and it gives an output in an output file which is e-mailed.
CONCCOUNT=`cat... (1 Reply)
Discussion started by: Jamessteevens
1 Replies
4. Shell Programming and Scripting
I have a unix shell script Test.sh
more Test.sh
echo "Calling dbquery1.sh...."
./dbquery1.sh
echo "Calling dbquery2.sh...."
./dbquery2.sh
more dbquery1.sh
sqlplus -s user1/password1@DB_SID @/tmp/storedprocedures/Hello.rcp
I run Test.sh
However, I do not want dbquery2.sh to be... (3 Replies)
Discussion started by: mohtashims
3 Replies
5. Shell Programming and Scripting
Below is my shell script. I am trying to execute two different BTEQ scripts depending on the day of the week. So on a saturday I will execute a certain BTEQ script and on other weekdays I will run the other script.
#!/bin/ksh
dt=`date +"%a"`
if then
bteq > final_output <<- EOF
.run... (3 Replies)
Discussion started by: Mihirjani
3 Replies
6. Shell Programming and Scripting
I am learning Unix for the first time. I am playing around with my default profile file to add some script in the KSH. The time format is GMT and I am in eastern time zone. I am trying to script some greetings based upon the time of day using the IF/ELIF conditions. I am getting errors. I have... (2 Replies)
Discussion started by: cpd259
2 Replies
7. Shell Programming and Scripting
Hi,
I was going through a file containing hundreds of lines of codes having conditional statement written as:
log()
{
echo $@
}
num=$(/usr/bin/rsh <one_machine> -l root 'ls -d /home/user/db* 2> /dev/null' | wc -w)
(( num > 0 )) && log "db info:"
so,if here the return value(stored in... (2 Replies)
Discussion started by: amit4g
2 Replies