This is a discussion on cron bash scripting troubles within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hey all, Having trouble understanding the problem with the following command from within a script: comm -23 <(grep 'sshd.*Connection ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hey all, Having trouble understanding the problem with the following command from within a script: comm -23 <(grep 'sshd.*Connection from\|Invalid' /var/log/sshd.log) $WKLOG > $TMPLOG It runs fine from the command line (w/ filenames not variables) and when I execute the script myself, ./<script>, but when it runs from cron it chokes on this line. The stderr output is: line 11: syntax error near unexpected token `(' line 11: comm -23 <(grep 'sshd.*Connection from\|Invalid' /var/log/sshd.log) $WKLOG > $TMPLOG Any idea what's causing the change from command line to cron? Does cron run through a different shell? Both are running as root. Thanks for any help! jp |