Re: Non-interactive shell and /dev/null
Try KDE said:
> Hi Everyone,
>
> I noticed some shell script, for example those under /etc/cron.*/, uses
> "command > /dev/null" style. I think it's because they know the scripts
> is run under non-interactive shell. My question is, what would happen if
> ">/dev/null" is removed and the command tries to print something to
> "standand out" (who knows where it is :) Will that cause real trouble
> or simply leaves mess on some virtual console?
probably leave a mess, I can't imagine (not)redirecting output to /dev/null
could cause any permanent damage
nate
Reply to: