Advertisement

07.30.2008 at 10:34AM PDT, ID: 23608253 | Points: 500
[x]
Attachment Details

Want to know how to set up a cron job.

Asked by huzefaq in IBM Websphere Application Server, IBM AIX Unix, KornShell (ksh)

Tags:

I am using AIX and I ran the following crontab command from putty
35 11 * * 3 /opt/was50/appserver1/AutoDeploy/TestDeploy.sh 2>>&1 mail -s "Crontab output" lakshmi@royalcyber.com

and I got the output of the TestDeploy.sh file in my email account. But when I tried to run the same command again by changing the time, say,
45 11 * * 3 /opt/was50/appserver1/AutoDeploy/TestDeploy.sh 2>>&1 mail -s "Crontab output" lakshmi@royalcyber.com

I am getting the following error.
ksh: 45 : not found.

Please tell me what I need to do to solve this problem. As of now, I have only given these commands in putty. But, I want to know how I can create a cron job and save it, so that it can call the cron.txt file at a scheduled time everyday.


Start Free Trial
 
Loading Advertisement...
 
[+][-]07.30.2008 at 10:48AM PDT, ID: 22122846

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.30.2008 at 11:31AM PDT, ID: 22123227

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.30.2008 at 12:34PM PDT, ID: 22123908

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.30.2008 at 12:36PM PDT, ID: 22123929

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.30.2008 at 01:46PM PDT, ID: 22124652

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.28.2008 at 07:39AM PDT, ID: 22335388

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628