10 More Discussions You Might Find Interesting
I have a script that it sends emails to various recipients using mailx, but some of the recipients should be sent as BCC, but ~b flag when used in the following line, does not put the gmail address as BCC:
echo "node $output is down" | mailx -s "$output not pinging" email@example.com ~b... (8 Replies)
Discussion started by: fretagi
2. UNIX for Dummies Questions & Answers
echo "Deleting CHOPOne Coreaccess from LAUA..."
$ORACLE_HOME/bin/sqlplus username/password@servername << !
delete from usergrpdtl where username='acker';
but not working with "if statement" even $TMPDIR/adlogin.log exists and greater than 0.
... (9 Replies)
Discussion started by: lawsongeek
3. Shell Programming and Scripting
solaris 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Fire-T200
I need a sed command that tests true when presented with lines that contain either forward and backslash.
It doesn't appear that sed (in my environment anyway) supports... (4 Replies)
Discussion started by: msutfin
4. Shell Programming and Scripting
I am a bit confused ,why would a sed command work fine outside of ksh script but not inside.
I want to replace all the characters which end with a value and have space at end of it.
so my command for it is :
sed -i "s/$SEPARATOR /$SEPARATOR/g" file_name
This is working fine in... (8 Replies)
Discussion started by: vital_parsley
5. UNIX for Dummies Questions & Answers
I am not able to run below command on linux, it however works on solaris. If anyone knows the reason and a solution for it can you please let me know ?
$> ksh 'echo hi'
ksh: echo hi: No such file or directory
$> which ksh
$> ksh 'echo... (2 Replies)
Discussion started by: krishnaux
6. Shell Programming and Scripting
Links Please??? (2 Replies)
Discussion started by: Diddy
7. UNIX for Advanced & Expert Users
Are there any documents available for checking the execution time taken by ksh commands?
My requirement is to fine tune a set of shell scripts having lot of "echos" and "date"s.
Is there a better replacement for the below code?.
echo "ABC process started on `date`"
echo... (12 Replies)
Discussion started by: engineer
8. Shell Programming and Scripting
I have this script which doesn't work on AIX ksh shell..
# ! /usr/bin/ksh
grep -irl "6000" /home/applmgr/xyz > file_list_port.log
xargs sed -i 's/6000/6010/g' < file_list_port.log
But this same script has worked perfectly on linux bash shell..
Could anyone please share... (4 Replies)
Discussion started by: a1_win
9. UNIX for Dummies Questions & Answers
I am trying to get various portions of strings in my script, but am getting a substitution error. I followed the syntax that was described when I goggled this, but I can't get anything to work.
echo... (1 Reply)
Discussion started by: anderssl
10. Shell Programming and Scripting
I have a few scripts that i would like to make into GUI's. Are there scripting commands to make GUI's if so where can i get the list of commands and what they do or if anyone has an example of it. Anything will help, thanks (1 Reply)
Discussion started by: daltonkf