"Command not found" para scripts no FreeBSD
# vi /usr/local/sbin/syncsquid
!/bin/sh
/usr/local/bin/rsync -avx --delete serverA::squid/ /usr/local/etc/squid/confs/
:x
# chmod 755 /usr/local/sbin/syncsquid
# syncsquid
syncsquid: Command not found.
# whereis syncsquid
syncsquid: /usr/local/sbin/syncsquid
# rehash
# syncsquid
receiving file list ... done
sent 73 bytes received 424 bytes 142.00 bytes/sec
total size is 103885 speedup is 209.02
# echo ":-D"
:-D
!/bin/sh
/usr/local/bin/rsync -avx --delete serverA::squid/ /usr/local/etc/squid/confs/
:x
# chmod 755 /usr/local/sbin/syncsquid
# syncsquid
syncsquid: Command not found.
# whereis syncsquid
syncsquid: /usr/local/sbin/syncsquid
# rehash
# syncsquid
receiving file list ... done
sent 73 bytes received 424 bytes 142.00 bytes/sec
total size is 103885 speedup is 209.02
# echo ":-D"
:-D
0 Comentários:
Postar um comentário
<< Home