Quote:
Originally Posted by chrism01
That's because in lftp -c " some cmds" ; all cmds within " " MUST be lftp (sub) cmds. You can't insert bash cmds
|
Thanks for your prompt Chris,
So, I have to setup another bash scrip to delete the older files, then I did, within the following line:
Quote:
lftp -c "open $ftphostname && user $ftpusername $ftppassword && find /backups/ -mtime +7 -delete {} \;"
|
where I still having the unknow command "mtime"...