View Full Version : FTP via mel on OSX
07-31-2006, 12:15 AM
Okay, so i want to create an web update feature for a script im writing, (yes it seems useless but it's more of a test than anything.)
I have a pc version working but im stuck as far as osX goes. Im not really familiar with system commands on a mac, nor automated ftp on a mac. I haven't been able to get the terminal to even respond to commands i send it from maya other than echo, and trying FTP seems to freeze maya completely? Does anyone know how I might be able to use ftp in mac osx via mel?
07-31-2006, 05:43 PM
Still having issues with the MEL command system on mac os x, I have a BASH script the automates my ftp process, but I cant for the life of me get it to run from inside of maya?
I have my bash script on my drive, I run system("/Volumes/FLASHDRIVE/ftp.txt"); and nothing happens. If i run /Volumes/FLASHDRIVE/ftp.txt from inside the BASH terminal on the mac it works perfectly, what am I doing wring here? Please excuse my lack of knowledge regarding the mac OS. Thanks.
07-31-2006, 09:47 PM
You don't have any program associated with a .txt file. From the bash shell, it may be smart enough to understand that whatever.txt is a shell script, but not from within maya. I would try something like system("sh /Volumes/FLASHDRIVE/ftp.txt"). I haven't done any shell scripting in awhile, so that is probably wrong, but I hope it at least gets you on the right path. I know that if I was doing it in perl, I'd want to do something like "perl myFtpScript.pl -file /Volumes/FLASHDRIVE/myFile.ma"
08-01-2006, 09:48 AM
Havnt had a chance to try it yet but that makes sense. Is perl built into all the OS X releases or just the newer ones(2.3 and up)? if it's in all i might just scrap the shell script and use perl instead. Anyways, thanks allot for the help.
08-01-2006, 09:48 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.