10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have written a programme where i need to work in one session but when that session get executed it doesnt execute other programme till I write exit. Below is the script
echo 'Going to start'
echo... (6 Replies)
Discussion started by: ripudaman.singh
2. UNIX for Beginners Questions & Answers
I have created a file in /etc/cron.daily on redhat linux 7.3 version host
#echo "Moving logs"... (3 Replies)
Discussion started by: anil529
3. Shell Programming and Scripting
I have a question regarding the difference betwen cron and command line.
What I would like to do is to print a statement into a logfile if a script has been executed from cron or from command line.
It should be as:
if <Check if this script has been... (3 Replies)
Discussion started by: API
4. Shell Programming and Scripting
Hi gang, I have the following code inside a the file script.sh
todaysdate=$(date --date='7 day' +'%d')
nicedate=$(date --date='5 day' +'%A')
nice="$nicedate,... (2 Replies)
Discussion started by: phpchick
5. UNIX for Dummies Questions & Answers
Dear *nix users.
I'm on Mac OS 10.6 / Terminal and try to use crontab to schedule two scripts every 30 minutes and every 41 minutes.
I followed the man instructions and created / installed a crontab file for the current user:crontab -e
with the following content
*/30 * * * *... (4 Replies)
Discussion started by: moxnos
6. Shell Programming and Scripting
I get a different output when i manually run the .sh script and when it is run by a cron job. Please help me ..
OUTPUT="/lhome/bbuser/script/wslog/sar.out"... (8 Replies)
Discussion started by: nithinankam
7. Shell Programming and Scripting
i need to reboot a server during 2nd and 4th saturday every month. i have come up with the below cron
30 17 8-14 * * if ; then /rebootscript; fi # to reboot every second saturday
30 17 22-28 * * if ; then /rebootscript; fi # to reboot every fourth saturday
I am wondering why it... (3 Replies)
Discussion started by: chidori
8. Shell Programming and Scripting
My shell script not getting called through cron job.
The same works fine when executed manually.
I tried to generate logs to find if the scripts has some errors related to path using following command- trying to execute .sh file every 5 mins:
*/5 * * * * /home/myfolder/abc.sh... (17 Replies)
Discussion started by: Dejavu20
9. Shell Programming and Scripting
I would like to capture who executed a script to a script's variable (i.e. testing.sh), so I can save it to a log file.
user=`<< code here >>` // get the info below in RED color
echo "$user execute testing.sh on `date`" >> testing.log
... (2 Replies)
Discussion started by: on9west
10. Shell Programming and Scripting
i have a script that uses an ant build.xml and its targets to pull a project from a cvs server, attempt to build the project, and then email me the results. When I run the script (either @ CLI or as a cron job) while I am logged in, everything works fine. However, if the script is set up to run... (5 Replies)
Discussion started by: kingfinny