10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I ahve a program which has to delete a line in a file... if i run the sed command through shell prompt it works fine. But if run it using code its throwing error. May i know where i am doing wrong.
the file has 3 lines
# cat /root/.ssh/known_hosts... (4 Replies)
Discussion started by: vivek d r
4 Replies
2. Shell Programming and Scripting
How do i echo the output of a unix command using shell script???
Like:
echo /etc/ ls -l (2 Replies)
Discussion started by: sunny2802
2 Replies
3. Shell Programming and Scripting
Hi all,
Here is my scenario..
i need to get dates from an existing autosys calendar and compare it with current date with in a unix shell script.
Please help me out and give me an approach to handle this.......
the general autosys calendar command used is autocal_asc ,but this is... (1 Reply)
Discussion started by: shrik12345
1 Replies
4. Shell Programming and Scripting
Hi
I've gotten a plugin script that won't run. I keeps throwing an error at the following line.
for BARCODE_LINE in `cat ${TSP_FILEPATH_BARCODE_TXT} | grep "^barcode"`
do
#something
done
The error reads
... (3 Replies)
Discussion started by: jdilts
3 Replies
5. Shell Programming and Scripting
Hi,
I am using following code to send an e-mail with attachment and body.
echo "To: user1@mail.com,user2@mail.com" > mail.tmp
echo "Cc: user3@mail.com,user4@mail.com" >> mail.tmp
echo "From: group@mail.com" >> mail.tmp
echo "Subject: my report" >> mail.tmp
echo "please see as attached"... (6 Replies)
Discussion started by: vivek_damodaran
6 Replies
6. Shell Programming and Scripting
Hi all,
I am using the below given sqlplus command in my unix script to invoke a stored procedure which returns a value .It works fine.
RET_CODE=$(/opt/oracle/product/10.2.0.4.CL/bin/sqlplus -S $USER/$PASSWD@$DB_NAME <<EOF
EXEC MY_PKG.MY_SP (:COUNT);
PRINT COUNT;
commit;
... (6 Replies)
Discussion started by: Shri123
6 Replies
7. Shell Programming and Scripting
Hi,
At present we have been using the mailx command which is working perfectly and the command is as follows;
mailx -s "$DESCR1" -c $DLIST_CC -r $REPLY $DLIST
We would like to add a Blind carbon copy "Bcc" in this mailing list using mailx. Please let us know how this can be done in ksh. (2 Replies)
Discussion started by: jmathew99
2 Replies
8. UNIX for Dummies Questions & Answers
how can i make one script fail if some condition is not satisfied.i m writing if ..else logic in script.i need some standard command to do that ,, (1 Reply)
Discussion started by: dr46014
1 Replies
9. UNIX for Dummies Questions & Answers
Hi
We had 3 server -hp112and hp146 here hp112 is production server and hp146 is staging server used for load.
when i am trying to run follwing command
rcp abc hp112:/dnbusr1/gbid/gbid02 it's trowing an error :-
remshd: Login incorrect.
But same command is working wise versa -
rcp abc... (1 Reply)
Discussion started by: ashish_panpalia
1 Replies
10. Shell Programming and Scripting
Hi..
How can i use mailx,mail command in Shell Script.
Suppose i gave a condition that x value is above 25 send a mail alert to abc@rediffmail.com.
How can i do this?
Regards
Sollin (16 Replies)
Discussion started by: sollin
16 Replies