wget and crontab
on my dedicated server i am trying to wget a site and its subdomains by assigning a cronjob.when i put this command over putty (after going into the specified subdomain)
/usr/local/bin/wget -m -q -nH --cut-dirs=4 --no-passive-ftp --dont-remove-listing ftp://ftp.somedomain.com/pub/files/folder/www/
wget works normally.
however when when setting crontab for this command:
/usr/local/bin/wget -m -q -nH --cut-dirs=4 --no-passive-ftp --dont-remove-listing ftp://ftp.somedomain.com/pub/files/folder/www/ -o /usr/local/psa/home/vhosts/mydomain.net/subdomains/subdomain_name/httpdocs/
NB: when in crontab i am in the main directory but i need to output the files to the httpdocs of a subdomain.
the problem is that i get:
/usr/local/psa/home/vhosts/mydomain.net/subdomains/subdomain_name/httpdocs/ is a directory!
any help for the correct command to output in the specified subdomain directory over crontab.