On 03/12/2013 02:51 PM, Jerry Feldman wrote:
On 03/12/2013 02:49 PM, Jerry Feldman wrote:
On 03/12/2013 01:27 PM, Chris O'Connell wrote:
Hi All,
I've created a nice little script on my BackTrack laptop. I put an
icon to
launch the script on the desktop, but I'm having two odd problems:
1. when I double click the icon the script I'm asked if I want to
"Run in
Terminal" or just run. Either one I pick the script never appears
on the
screen.
2. Second, I need to ensure the script runs as the super user.
I really should know how to do this after using Linux for so long,
but it's one of those things that's just proving frustrating.
Generally scripts need to run in terminal.
Sudo requires an active tty port. It has security measures so that it
can't run inside of a script.
You have to comment out this in /etc/sudoers:
Defaults requiretty
You can also run the shell
Lost the last half of my message:
/bin/bash -c <command>
--
Jerry Feldman <[email protected]>
Boston Linux and Unix
PGP key id:3BC1EB90
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66 C0AF 7CEA 30FC 3BC1 EB90
_______________________________________________
Discuss mailing list
[email protected]
http://lists.blu.org/mailman/listinfo/discuss