execute bash script with new terminal without give the password ...
I try to execute this script:
Code:
#!/bin/sh I try with visudo to edit : Code:
ALL=(usertest) NOPASSWD: /home/usertest/watch_ifconf.sh Code:
sh: 1: ifconfig: not found How can I do ? Thank's . Regards. |
The full path to ifconfig should help you out
Code:
lxterm -e "watch -d /sbin/ifconfig eth0" Rather than starting multiple terminals and arranging, something I use which may or may not suit your needs is Terminator With a little work you can setup profiles. Allowing the start of multiple terminal sessions each automatically executing commands/scripts all in one Window with multiple panes. |
All times are GMT -5. The time now is 09:57 AM. |