Accessing bundle unix calls
RGould8 at aol.com
RGould8 at aol.com
Fri Jun 6 12:02:02 EDT 2003
I'm trying to wrap a unix file within a Revolution app and then execute it
within the program on a later screen. This works, except if the user puts the
application in a folder that has spaces in it. My unix file is called
"PPPSetup", and it accepts parameters (username/password). Here's what I've got so
far:
put the defaultfolder & "/PPPoE_Connector.app/Contents/Resources/PPPSetup e
" & username & " " & password into bundlepath
put shell(bundlepath) into errorcode
The problem is that if the default folder contains a space, then the unix
call thinks that everything after that space is a parameter, and fails. I tried
putting it all in quotes like this:
put quote & the defaultfolder &
"/PPPoE_Connector.app/Contents/Resources/PPPSetup e " & username & " " & password & quote into bundlepath
but that also failed - - - is there another way?
- Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20030606/2f339805/attachment.html>
More information about the use-livecode
mailing list