10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Need help in identifying a shellscript command to remove all files on a server directory, starting with a certain prefix and also older than 3 days.
That means files created with that prefix, today or yesterday, shouldn't be removed.
Thanks,
Dev (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
2. Solaris
I have deleted a particular cronjob couple of months ago but the jb is still running every sunday, even though it is not present in /var/spool/cron/crontabs/root file.
Please assist. (6 Replies)
Discussion started by: prash358
6 Replies
3. Shell Programming and Scripting
Hi All,
I have tried some below commands , some of these are working. some are not working.
I want to add this "TO ,cc, bcc, from " in shellscript.
can anyone give me the example for this.
mailx -s "$SUBJECT5" "$EMAIL" < $EMAILMESSAGE
above code is working but i want to... (5 Replies)
Discussion started by: aish11
5 Replies
4. Shell Programming and Scripting
Hi,
i have run the below script in bash ...after running this command iam not getting any error but i am not getting the mail.Can anybody help me regarding this issue?
#! /bin/bash
x=50
if
then
mail -s "$x is greater than 25" manish.gupta@gmail.com
fi (2 Replies)
Discussion started by: pspriyanka
2 Replies
5. UNIX Desktop Questions & Answers
Hi All,
I have the below code where Iam connecting from xzur111pap server to xzur0211pap server thru ssh to execute some commands.
ssh xzur0211pap
spaceleft=`df -k /home |tail -1 | awk '{print $5}'`
spaceleft=${spaceleft%\%}
if ]; then
echo "ALERT : HUFS(/home $spaceleft)"
exit 0... (3 Replies)
Discussion started by: gaddamja
3 Replies
6. Shell Programming and Scripting
I have a file (test.dat) which contains data like this
459|199811047|a |b |shan
kar|ooty|
460|199811047|a |bv |gur
u|cbe|
but I need it like:
459|199811047|a |b |shankar|ooty|
460|199811047|a |b |guru|cbe|
While reading the data from this file, I don't want to remove newline from the end of... (4 Replies)
Discussion started by: jcrshankar
4 Replies
7. Solaris
Guys,
can u tell me some way in which the commands i execute on solaris system doesnot gets logged. It should not appear in history file.. Is there any shell which provide such solution or can I turn off the logging, if yes then how...
Help will be appreciated
Thanks (2 Replies)
Discussion started by: harpreetrekhi
2 Replies
8. Shell Programming and Scripting
Hi
I need a command to search files in a directory which does not match with pattern .. Plz send me this
Ex : Test is directory and has some 10 files with different name all are with *.dat extension , need to search files which doesnot contain word "Dummy file".
Thanks (6 Replies)
Discussion started by: madankumar
6 Replies
9. Shell Programming and Scripting
Hi
I am new to unix.
I have to set up a cron for the program , which should run every Monday at 3 a.m, however , if the date is between the 5 th and the 15th of January,APril or December, the program should not run
I know i cant do this in cron , Help with writing the if contion is... (1 Reply)
Discussion started by: saiviren
1 Replies
10. Shell Programming and Scripting
hi every one ,
i m new in unix . i m trying shell scripting .
set v = abc
echo $v
but it does not show any output .
please help me (4 Replies)
Discussion started by: samy123
4 Replies