This should be easy for this milis, I got this script running fine in
command-line/console in linux, but why I can't run it properly under
cron?
<code>
open FAXSTAT, "faxstat -s |";
$limit = $ARGV[0];
$smallest = 9999;
@tooBig = ();
$found = "no";
while(<FAXSTAT>){
$jid = substr($_, 0,5);
$content = "$jid\n";
if (($jid =~ /\d/) && ($jid <= $smallest)){
$smallest = $jid;
#system("echo 'Smallest now is: $smallest'");
}
}
</code>
If you see above code, if I execute perl manually, I can get the
$smallest. But not if I run in cron
Why?
TIA.
Toddy Prawiraharjo
_______________________________________________
Perl-Unix-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs