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

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48391
interpreted = N
texte = 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?Thanks in advance,Signed: 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)
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?Thanks in advance,Signed: 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:

Hard Questions ? (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Document Contains No Data! (1997) Configuring E-mail (1997) (1997) Emailer setup (1997) problems with 2 tags shakur (1997) Sku numbers (1997) Duplicates (1998) I've been thinking (2002) paymethod=cc allows all zeros (1999) Before I Can Begin . . . (1998) WebCatalog/Mac 2.1b2 New Features (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) setting cookies with [setcookie] (1998) Formatting dates stored in db (2003) Running _every_ page through WebCat ? (1997) WebCat2.0b15-to many nested [xx] tags (1997) Need relative path explanation (1997) Members register & gain access system (1998)