Re: fun with shell scripting

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47352
interpreted = N
texte = I've run up against the same wall. Would really like to see this discussion expanded upon.MikeOn Friday, January 31, 2003, at 03:16 PM, WebCat @ Inkblot Media wrote:> Hello Everyone, > > NOTES: > Server is Mac OS 10.2 > Scripts AppleScript and Shell > > I need some assistance. I have created a shell script that works from > command line: > > /path/to/script > > but 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/file > > Now 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! > > ------------------------------------------------------------- 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)
I've run up against the same wall. Would really like to see this discussion expanded upon.MikeOn Friday, January 31, 2003, at 03:16 PM, WebCat @ Inkblot Media wrote:> Hello Everyone, > > NOTES: > Server is Mac OS 10.2 > Scripts AppleScript and Shell > > I need some assistance. I have created a shell script that works from > command line: > > /path/to/script > > but 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/file > > Now 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! > > ------------------------------------------------------------- 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/ Michael 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:

emailer error -108 (1997) RE: automatic reload of frameset (1997) [WebDNA] Installing 7.1.702 on CentOS (2012) OUTSIDE LINKS TO SHOW SHOPPING CART????????? (1998) [Listfiles] vs Netfinder (1997) FlushDatabase Suggestion (1998) Help!!!! Purchases not going through! (1997) webcat (2000) errormessages.db (1997) [WebDNA] upload image files.... (2018) syntax question, not in online refernce (1997) Date Formats (1997) Quitting WebMerchant ? (1997) No Data Results (1997) Adding Shipping Costs based on percent of subtotal (1997) Sandboxes & Kitty Litter trays (2003) RE: [WebDNA] lists opinion (2009) convert characters (2003) How reliable is WebDNA? (2004) WYSIWYG HTML editor for use in browser (2001)