Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 11:18 on June 26, 2006


Crontab problems

My crontab, manual scripts can be implemented

Following the script
#!/bin/sh
Ftp -n<<!
Open 10.10.10.10
User user password
Binary
Prompt off
Mget *
Close
Bye
!

This is a mail message :
Message 1 :
From Oracle Fri May 30 09:19:00 2003
Date : Fri, 30 May 2003 09:19:00 +0800
From : root@localhost.localdomain (chsion Daemon)
To : oracle@localhost.localdomain
Subject : chsion "oracle@dbback> * /home/oracle/backup.sh
X-Cron-Env : "SHELL=/bin/sh>
X-Cron-Env : "HOME=/home/oracle>
X-Cron-Env : "PATH=/usr/bin:/bin>
X-Cron-Env : "LOGNAME=oracle>

/bin/sh Makefile : command not found :

How else?

Crontab problems

...

How will a Makefile you? Crontab you what is written?

Crontab problems

30 12 * * * /home/oracle/backup.sh

It's that simple ah

Crontab problems

-->

This is really weird, you take the first trip into #!/usr/bin/ksh (in the machine, you may be other paths)

Or used in crontab

30 12 * * * /usr/bin/ksh /home/oracle/backup.sh

Try

Crontab problems

/bin/sh Seems to be not found.

Crontab problems

Find problems

* Be more to write a crontab

: Oops :

Crontab problems

...

There should be a defined period of five fields



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com