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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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:
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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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)