![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing runtime arguments to a shell script... | santy | Shell Programming and Scripting | 10 | 01-09-2009 10:47 PM |
| allocate memory for a shell script at runtime--urgent critical help!!! | aixjadoo | UNIX for Dummies Questions & Answers | 3 | 06-12-2008 09:43 AM |
| $HOME Not Getting Set for Oracle Scheduler Script at Runtime | shew01 | Shell Programming and Scripting | 4 | 12-14-2007 08:31 AM |
| pass runtime parm to at -f shell script | island360 | Shell Programming and Scripting | 1 | 10-28-2007 12:59 PM |
| creating log files for a backup script on solaris | valicon | SUN Solaris | 3 | 03-08-2004 10:02 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
this is the output i am getting here..
cp: cannot create /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/eoigwsA_Health_Status_Report.html: Permission denied /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/ /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/GenerateReport.sh: /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/eoigwsA_Health_Status_Report.html: cannot create zip I/O error: Permission denied zip error: Could not create output file (Model_B_reports.zip) if i execute the script manully in the same env by using the absolute path. it works fine.. but when i use cron tab the cron cannot create the file.. /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/ |
|
||||
|
Your "cron" job on hwdusa33
/wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/start_script.sh produced the following output: /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/b2bstat.sh: /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/teToday.log: cannot create grep: can't open /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/teToday.log /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/teToday.log: No such file or directory /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/b2bstat.sh: /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/cnToday.log: cannot create grep: can't open /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/cnToday.log /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/cnToday.log: No such file or directory b2bstat.sh /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/start_script.sh: /wls_domains/eoigw/eoigwsA/logs/reports/dailyreport_env.log: cannot create report_daily.sh /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/start_script.sh: /wls_domains/eoigw/eoigwsA/logs/reports/dailyreport_env.log: cannot create GenerateReport.sh This is what i recived as output for cron. here is my script /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/start_script.sh when i execute it in this env it gives output as well send the mail the cron account is on the same server. |
|
||||
|
here is sample
#For the test1.sh crontab
35 11 * * * /home/tolamas/suru/MailingScript/test1.sh #test1.sh cat /home/tolamas/suru/reports/test11.res RCPT_LIST="st0030761@techmahindra.com" SUBJECT="test mail dated ${MAIL_DATE} " FROM="surekha.tolamatti@techmahindra.com" ( cat /home/tolamas/suru/reports/test12.res echo "HI this is crontab.." ) | mailx -s ${MAIL} -r "${FROM}" -s "${SUBJECT}" ${RCPT_LIST} #end of file test1.sh but cron is not able to execute the script if it remove below two lines from the test1.sh the cron can execute the script. cat /home/tolamas/suru/reports/test11.res cat /home/tolamas/suru/reports/test12.res |
|
|||||
|
On the first line of your script, add
#!/bin/sh and try again. Also, post what you get in the email from the instructions here: crontab is not creating runtime files which are in script.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|