[Gambas-user] Shell command not working

Jose Monteiro jf.monteiro at ...43...
Thu Mar 7 13:40:58 CET 2013


text = "cd ~/.relat_bact && rm -rf Modelo*.odt && zip -r " & "MA" & Mid$(ListBox1.Text, 1, 9) & ".odt  ."
  Shell text Wait

1 - navigating to ~/.relat_bact directory and deleting the odt file is working fine.

2 - generating the "zipped" odt file (MAxxxx.odt) using the files and directories inside ~/.relat_bact is not working. The error message is: "zip I/O error: No such file or directory
zip error: Could not create output file (MA000004/12.odt)"

3 - If I type these commands directly on a terminal it works fine.

My system information: 
[System]
OperatingSystem=Linux
Kernel=3.5.0-25-generic
Architecture=i686
Memory=1025808 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 12.10"
Desktop=Gnome

[Gambas 3]
Version=3.3.3
Path=/usr/local/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.8.3
GTK+=libgtk-x11-2.0.so.0.2400.13

Thanks in advance



More information about the User mailing list