[Gambas-user] Shell not working properly in G 3.2
jm
joem at ...2671...
Fri Jul 13 17:39:55 CEST 2012
On Fri, 2012-07-13 at 15:52 +0200, M. Cs. wrote:
> I have a BIG problem with the Shell command:
doubt it!
Simple debug problem.
DIM a AS String
a = "unzip -u " & Chr$(34) & User.Home & "/.GamCat/GamCat.zip" & Chr
$(34) & " -d " & Chr$(34) & User.Home & "/.GamCat/" & Chr$(34)
Freeze the IDE and look at value of a:
unzip -u "/home/minthaka/.GamCat/GamCat.zip" -d
"/home/minthaka/.GamCat/"
Notice anything different with your intended script that works?:
Shell "unzip -u /home/minthaka/.GamCat/GamCat.zip -d
/home/minthaka/.GamCat/" Wait
Lots of unnecessary Chr$(34) inserted everywhere for no reason!!
> Shell "unzip -u " & Chr$(34) & User.Home & "/.GamCat/GamCat.zip" & Chr$(34)
> & " -d " & Chr$(34) & User.Home & "/.GamCat/" & Chr$(34) Wait
> Tells me the the following:
>
> "unzip: cannot find zipfile directory in one of
> /home/minthaka/.GamCat/GamCat.zip or
> /home/minthaka/.GamCat/GamCat.zip.zip, and cannot find
> /home/minthaka/.GamCat/GamCat.zip.ZIP, period."
>
> However, the file User.Home & "/.GamCat/GamCat.zip" exists, and even I try
> to run in a terminal the copied message
>
> Message("unzip -u " & Chr$(34) & User.Home & "/.GamCat/GamCat.zip" &
> Chr$(34) & " -d " & Chr$(34) & User.Home & "/.GamCat/" & Chr$(34))
> works seamlessly.
>
> Please help me, I've already spent hours over this issue!
>
> The worst thing is that when I use
>
> Shell "unzip -u /home/minthaka/.GamCat/GamCat.zip -d
> /home/minthaka/.GamCat/" Wait
> there are no errors at all.
>
> Csaba
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> ______________________________________________________________________________
> This message has been checked for viruses and spam by Armourplate
> http://www.armourplate.com, the email archiving, anti virus and anti spam
> service from Corpex.
______________________________________________________________________________
This message has been checked for viruses and spam by Corpex using
the ArmourPlate Anti Virus and Anti Spam Scanning Service.
To find out more and see our email archiving service see
http://www.armourplate.com or call Corpex on UK 0845 050 1898.
More information about the User
mailing list