03-19-2014
Anything you can do in a script that you run interactively you can do in a script run by cron. However, try to always use full pathnames since cron won't know about path parameters (unless you've set them within the script), and always set all variables within the script since cron won't know about such variables set in the likes of .profile
Otherwise, yes, no problem. Give it a test run.
10 More Discussions You Might Find Interesting
1. Red Hat
I'm running RedHat Linux Enterprise Server ES Version 3 and I've stopped the audit service. Now I'm getting the following error messages in /var/log/cron
May 17 07:01:01 pam crond: LAuS error - do_command.c:243 - laus_log: (19) laus_log: No such device
May 17 08:01:01 pam crond: (root) CMD... (1 Reply)
Discussion started by: soliberus
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
please help me out with this problem.
While running my mail_out_original.ksh in CRT window, it disconnects from the server saying not connected
Here is my code : (please see the attachment)
____________________________________________________________
#!/bin/ksh
## Load... (1 Reply)
Discussion started by: shruthinagaraj
1 Replies
3. Shell Programming and Scripting
Hi All,
please help me out with this problem.
While running my mail_out_original.ksh in CRT window, it disconnects from the server saying not connected
Here is my code : (please see the attachment)
____________________________________________________________
#!/bin/ksh
## Load... (1 Reply)
Discussion started by: shruthinagaraj
1 Replies
4. Shell Programming and Scripting
HI
am having a script file which is ok if i run from the server manually
like
<root@hostname:/space/canvas/home/lbs/current/internalcdrbackup/LES_CDR_Configuration/0/MSISDNcdrCount > /space/canvas/home/lbs/current/internalcdrbackup/LES_CDR_Configuration/0/MSISDNcdrCount.txt
the... (2 Replies)
Discussion started by: aemunathan
2 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I´m a newbie in Linux, but I´m trying to solve some problems studying on my own, but I´ve had some problems with AWK.
Look, I have one single backup log file per server and I want to make a daily delection from the last backup job to show in a intranet of my work.
The log files are from... (0 Replies)
Discussion started by: metalfreakbr
0 Replies
6. Shell Programming and Scripting
Hi
Iam new to unix .please help me in writing a script.Suppose there are 100 scripts in a cron file which are scheduled to run at different times,different dates . I need to monitor all the scripts daily whether they ran or not if ran whether its sucessfully ran or not .
if the script hasnt... (2 Replies)
Discussion started by: mskalyani
2 Replies
7. Shell Programming and Scripting
Hi
I have a requirement to write a script to capture all errors in a Logfile and send the file in email.
If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS.
So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies
8. Shell Programming and Scripting
Hello,
I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l.
#51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1
#40 17 * * * /home/oracle/refresh/refresh_ux634.sh... (1 Reply)
Discussion started by: guptra
1 Replies
9. UNIX for Dummies Questions & Answers
Hi Team,
When i am running the below query manually it is giving me the right output
i.e.
export PATH=/usr/sbin:/usr/bin:/sbin:/bin:$PATH
ADMIN=abc@abc.com
CPU_HIGH=`sar|awk '{print $9}'|sort -n|head -5|sed -n 5p`
CPU_MAX=`echo "scale=3; 100-$CPU_HIGH" | bc`
CPU_LOW=`sar|awk '{print... (13 Replies)
Discussion started by: Ekamjot
13 Replies
10. Web Development
Apache Web Server:
how to log http 404 error to a separate log file and i do not want to log in access.log
please advice. (2 Replies)
Discussion started by: raghur77
2 Replies