If you want "hands off, no typing required" scan initiation from the
command line, netcat is your friend.

Depending on your distro, these two scripts might work for you:

sbs-full-scan.sh

Code:
--------------------
    
  #!/bin/sh
  nc -w1 127.0.0.1 9090 <<EOF
  wipecache
  exit
  EOF
  
--------------------


sbs-scan-for-new.sh

Code:
--------------------
    
  #!/bin/sh
  nc -w1 127.0.0.1 9090 <<EOF
  rescan
  exit
  EOF
  
--------------------


For dealing with the vagaries of various flavors of netcat, see:

http://forums.slimdevices.com/showthread.php?t=83539


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=85568

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to