News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
"murgaLua -e string" in Windows and Mac
Author Message

Posts: 81
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: "murgaLua -e string" in Windows and Mac

If you wan't to set a filename in the script you wan't to call, it might be a little bit harder. Although there might be a few solutions. I think the easiest solution would be to replace the "\" with "/" and replace them in the script you call again (string.gsub(var,"(\\)","/")). There could be also be another problem, because Windows user put all kind of weird characters in their filenames, because they can.

If you want to be really on the save side you can do the following (although it might be a little bit overkill):

io.popen(MURGALUA.." -e images=\""..(mime.b64(file,nil)).."\" "..scriptname,"r")
--in the script you can get the directory with:

While this might be a little bit overkill, it is a method that wil definitely work.


02-23-2008 03:58 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
RE: "murgaLua -e string" in Windows and Mac - Juergen - 02-23-2008 03:58 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: