I have written one shell script for uploading some files using ftp. I configured .netrc to use non-interactive mode for logging in to ftp.
When I run the script manuall, everything works fine. But when I add this file in crontab, the job gets executed but it does not do ftp.
Below is the snippet of the script for quick reference - -------------- ftp $IP_ADDRESS <<INPUT_END> passive cd $TARGET_PARENT_PATH/$CUSTOMER_ACCOUNT/ put $PARENT_PATH/$CUSTOMER_ACCOUNT/$l_filename $l_filename quit INPUT_END --------------
Thanks in advance
love your job and not your company;
...because you never know when your company will stop loving you!