4

Bash Script only works when manually running.

view full story
linux-howto

http://www.linuxquestions.org – I'm curious if anyone has ideas what may be causing this. I have a PGP script that for whatever reason if I let linux's cron run it automatically, it sends out the final email with attachment with a blank file. If I come in and run in manually everything works fine and the file is populated in the file. So the only real difference is that i'm running it manually through cron, rather than letting cron run it at a set time. Below is a summary of my script. Code: #! /bin/bash #PGP Decryption Bash Script clear psftp -b ftp -pw *Removed* d=`date --date="yesterday" +%Y%m%d` mv extr (HowTos)