Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. victorkhugo

    Running a script as a different user.

    I did sudo because I couldn't figure out how to invoke su, and still run in tcsh. By default the users run bash and eventhough I put #!/bin/tcsh at the beginning of the script, it would still run in bash.
  2. victorkhugo

    Running a script as a different user.

    What I want to do is find out the current screen saver settings the current user has set. The way that I'm doing it now is, I split the tasks into two different scripts. #!/bin/tcsh set j=`users` foreach k ($j) echo $k if ("$k" != 'root') then sudo -u $k /usr/bin/forceScreenSaverSimple exit...

Part and Inventory Search

Back
Top