[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: bkup



Hi Binand,

Thanks a lot for the hint. 

But how to run this from cron. I wrote a simple script for echoing 
a message. then i submitted this to cron using

crontab sudheer message

After that it created a file in /var/cron/tabs in my name. also this is
the log from /var/log/messages

"Jul  5 13:32:46 an crontab[532]: (sudheer) REPLACE (sudheer)"

But the script is not getting executed. I couldn't figure out what exactly
is happening.

please help

sudheer



On Sat, 3 Jul 1999, Binand Raj S. wrote:

> 
> Use ncftp in its line mode. Start ncftp, edit the preferences and
> bookmarks file, and then write a shell script which  has  a  here
> document, ie, something like
> 
> #!/bin/sh
> cd /tmp/backup
> ncftp host.com << EOF
> get -R /home/you/
> quit
> EOF
> 
> (Info  about  the  host,  login id, passwd etc. are stored in the
> bookmarks file, and info about transfer type  and  other  config-
> urable ncftp's behaviour are stored in the preferences file).
> Now run this script from cron.
> 
> Binand
> 
> -- 
> main(int c,char **v){while(!fork()){strcpy(v[0],tmpnam(0));sleep(1);}}
> A program that changes its name and pid every second.
> Try this program at your own risk!   ---> Binand <---
> 
> --------------------------------------------------------------------
> For more information on Linux in India visit http://www.linux-india.org/
> 


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/

------------------------------