hmm..


Code:
--------------------
    Would become
  
  # get number of known players
  players=$(printf "player count ?\nexit\n" | bin/nc $server $port | cut -d ' ' 
-f 3)
--------------------


> jan@muzzigbox:~$ whereis nc
> *nc: /bin/nc* /bin/nc.openbsd /usr/share/man/man1/nc.1.gz
> jan@muzzigbox:~$
> 

please use the complete path - /bin/nc - where the executable nc is
stored.
But /bin should be in the path already - please add > echo $PATH >> $LOGFILE
into the script and wait till crontab starts - if there is something
like > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> in the logfile - then there is another strange thing.

Btw: which Linux do you using - squeezeplug is debian?
DId you *sudo crontab -e* or crontab e when your in $ Mode?

Eays to find - use both of these commands and look under which command
the script is shown.



Gruss

Jan
------------------------------------------------------------------------
DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=99916

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to