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

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48395
interpreted = N
texte = Thanks I'll look into it. ... still working on it ...On Wednesday, March 5, 2003, at 01:37 PM, John Peacock wrote:> 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. > > JohnSigned: Marc Kaiwi ------------------------------------------------------------- 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)
Thanks I'll look into it. ... still working on it ...On Wednesday, March 5, 2003, at 01:37 PM, John Peacock wrote:> 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. > > JohnSigned: Marc Kaiwi ------------------------------------------------------------- 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/ marc@kaiwi.com (Marc Kaiwi)

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:

Sendmail truncation in Eudora Clients (1998) ShowNext (1997) [WebDNA] Download not load into browser (2014) 2.0.1 new commands and contexts (1997) WebTV problems with WebCatalog?? (1998) More on the email templates (1997) Permission denied? (2004) Webcat Manual and TeaRoom Examples Uses Different Examples. (1997) Tab Charactor (1997) SSL (1998) Wrapping text (1998) Search as error page (2002) Sorting error (1997) Https not showing products (2004) Re:WebCat Talk Arhives... (1998) Re:2nd WebCatalog2 Feature Request (1996) WebCat for Unix?? (1997) Trying to append from within a single template file (2005) [WebDNA] Variable mystery (2009) Last Record not recognized? (1999)