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:

[SHOWIF AND/OR] (1997) Desperatly seeking (2000) [WebDNA] Is anybody running a CAPTCHA? (2017) price on detail, but not shoppingcart (1997) Instructions for Digest (1997) Show items based on login Password (2003) WebCatalog [FoundItems] Problem - LONG - (1997) RE: Automatic Forwarding using WebCat (1997) SetLineItem (1997) Re:quit command on NT (1997) How do I get Google to crawl a WebCat site? (2003) Search results templates (1996) Cart questions (1997) rotating thumbnails (1997) Searching multiple fields from one form field (1997) [WebDNA] why this error when using [shownext] with a [table]? (2009) Math (1997) Mozilla/4. and Browser Info.txt (1997) Multiple Ad databases? (1997) WebDNA tags in WebMerchant email templates ... (1997)