Has anyone run an interactive shell session of any kind on Mac OS X? If so can 
you share some code?

in the dictionary it says you cannot use the open process command on OS X to 
run a unix process. but you should use "shell" instead.  

OK that works... but once you get the result back from shell, how do you 
continue to interact with that process if it was not opened by "open process"

You can do this:  

put " sftp someUser:somepassw...@somedomain.com" into tCmd


put shell(tCmd) after fld "SFTPsession"


and you get back "Connected to myDomain.com"

But how would continue to interact?

If we do this:

   put " sftp devhap:v1oletr8z4s...@dev.himalayanacademy.com" into tCmd
   put shell(tCmd) after fld "SFTPsession"
   wait 2 seconds
   put "ls" into tCmd
   put cr & cr &shell(tCmd) after fld "SFTPsession"
   put the result

we get a listing for the current defaultfolder that is the last default folder 
set by the LC stack we are working in which is a local folder and not a remote 
listing.

BR






_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to