Re: Maybe Off Topic -- OS X/UNIX Shell Scripts?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48393
interpreted = N
texte = Marc Kaiwi wrote: > I want to call [Shell] some_script .sh[/Shell] to analyze some log files > that require an sudo to access them in their restricted directories. Can > I do this automatically in my shell script? ... in other words for > example I have a script which does a tail on a log file but (in my > shell) I would have to manually enter a password to continue: sudo tail > -F somelogfile.log <-- asks for a password and then continues on. > Can I pass a password to this function without any user interaction? > Check out the docs for sudoers and specifically the section on NOPASSWD. You can set a specific user and specific program(s) that user can run without a password.John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Maybe Off Topic -- OS X/UNIX Shell Scripts? (Clint Davis 2003)
  2. Re: Maybe Off Topic -- OS X/UNIX Shell Scripts? (marc@kaiwi.com (Marc Kaiwi) 2003)
  3. Re: Maybe Off Topic -- OS X/UNIX Shell Scripts? (marc@kaiwi.com (Marc Kaiwi) 2003)
  4. Re: Maybe Off Topic -- OS X/UNIX Shell Scripts? (John Peacock 2003)
  5. Re: Maybe Off Topic -- OS X/UNIX Shell Scripts? (Clint Davis 2003)
  6. Maybe Off Topic -- OS X/UNIX Shell Scripts? (marc@kaiwi.com (Marc Kaiwi) 2003)
Marc Kaiwi wrote: > I want to call [shell] some_script .sh[/Shell] to analyze some log files > that require an sudo to access them in their restricted directories. Can > I do this automatically in my shell script? ... in other words for > example I have a script which does a tail on a log file but (in my > shell) I would have to manually enter a password to continue: sudo tail > -F somelogfile.log <-- asks for a password and then continues on. > Can I pass a password to this function without any user interaction? > Check out the docs for sudoers and specifically the section on NOPASSWD. You can set a specific user and specific program(s) that user can run without a password.John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ John Peacock

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

search form problem.. (1997) Download Question (1997) cart (1997) 2 databases problem (1997) name-value pairs (2006) [WebDNA] Server load (2008) Mass Mail (2000) Online reference (1997) Processing all html files through WebCat or Typhoon (1998) autosensing lanague selection (1997) [Webcat 2]Next (1997) [WebDNA] max-age (2016) Parameter vs. Operator (1998) PDF mailing labels (2000) Variable Prices (1998) sandbox is hogging 99% cpu cycles (2004) Bug Report, maybe (1997) Frames and WebCat (1997) Order not created error (never mind) (1997) Only charge card when product shipped ? (1997)