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

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48392
interpreted = N
texte = I was able to get around this problem by setting up a crontab that runs as the root user. Get Cronnix from Version Tracker. On 3/5/03 3:17 PM, 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? --------------------------------------------------------------------- Clint Davis Webmaster / Interactive Media Specialist Gray Loon Marketing Group, Inc. http://www.grayloon.com 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999 --------------------------------------------------------------------- ------------------------------------------------------------- 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 was able to get around this problem by setting up a crontab that runs as the root user. Get Cronnix from Version Tracker. On 3/5/03 3:17 PM, 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? --------------------------------------------------------------------- Clint Davis Webmaster / Interactive Media Specialist Gray Loon Marketing Group, Inc. http://www.grayloon.com 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999 --------------------------------------------------------------------- ------------------------------------------------------------- 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/ Clint Davis

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:

Proper file locations (1997) USPS Intergration (2001) URL for Discussion Archive (1997) emailer (1997) RE: Formulas.db + Users.db (1997) [hideif] (1998) Stats (2001) [WriteFile] problems (1997) PIXO support (1997) [add] context causing WebStar to crash! (2000) Rhapsody? (1997) Solaris (2007) Daze to Dates (1998) Newbie HW/SW Setup Question (2000) Signal Raised Error (Part II) (1997) Re:listfiles-looking for slick solution (1997) carriage returns in data (1997) WebCatalog dying in WebTen Revisited (1998) problems with WebCat-Plugin () WebCatalog 3.0.8 is on FTP... (2000)