Cronjob failing because ">/dev/null 2>&1" on the tail of the command

Status
Not open for further replies.

asari

Cadet
Joined
Nov 28, 2011
Messages
5
Hi,

I set up a cron command at Web GUI, like "ssh ... cat remote_file > local_backup", but local_backup file remained empty.
I looked into /etc/crontab and found ">/dev/null 2>&1" on the tail of the command, so I replaced ">" with "| tee" (i.e. "ssh ... cat | tee local"), and it seems to work now.

Are there any better workaround?
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
What the topic title has to do with the question?

Anyway, I guess not, you may feel a ticket describing your case and asking for feature enhancement though... support.freenas.org
 
Status
Not open for further replies.
Top