fun with shell scripting

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47351
interpreted = N
texte = Hello Everyone,NOTES: Server is Mac OS 10.2 Scripts AppleScript and ShellI need some assistance. I have created a shell script that works from command line:/path/to/scriptbut the script had to be run as root. So I used the sudo after adding the web user to the sudoers file to have permissions to execute this script. Again this worked via command line:sudo /usr/bin/osascript /path/to/fileNow I need to call this from within a webcat page. So I tried using the [shell] context:[shell]sudo /usr/bin/osascript /Library/WebServer/Documents/planet/add[/shell]Does not work.I have also attemped using the Stickybit 4755 and owned by root, but OS X 10.2 does not work with the set-id stickbit feature.Any ideas are great appreciated!Thanks, ------------------------------------------------------------- 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: fun with shell scripting (Michael Davis 2003)
  2. fun with shell scripting (WebCat @ Inkblot Media 2003)
Hello Everyone,NOTES: Server is Mac OS 10.2 Scripts AppleScript and ShellI need some assistance. I have created a shell script that works from command line:/path/to/scriptbut the script had to be run as root. So I used the sudo after adding the web user to the sudoers file to have permissions to execute this script. Again this worked via command line:sudo /usr/bin/osascript /path/to/fileNow I need to call this from within a webcat page. So I tried using the [shell] context:[shell]sudo /usr/bin/osascript /Library/WebServer/Documents/planet/add[/shell]Does not work.I have also attemped using the Stickybit 4755 and owned by root, but OS X 10.2 does not work with the set-id stickbit feature.Any ideas are great appreciated!Thanks, ------------------------------------------------------------- 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/ WebCat @ Inkblot Media

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:

Fuck you (1998) [click][/click] (1999) Help need to figure this out today!!! Advanced Question (2004) XHTML Compliant Links (2007) Emailer problem (2000) Calendar Program (2004) webcat2b12 CGI -- Date comparisons (1997) Umm...about those log files? (Off Topic) (1997) Forms Search Questions (1997) RE: Cookies? (1997) Umm...about those log files? (Off Topic) (1997) WebCatalog 4.0 ? (2000) WebDNA permissions? (2002) gateway application timeouts (1998) ShowIf variables (1997) Swear words (2002) many-to-one problem (1998) Searching Numbers (2004) R.I.P. Netscape (2003) EIMS Problems (1997)