[Gambas-user] Shell with wait does not wait till work complettion

tobi tobiasboege01 at ...1601...
Mon May 21 20:10:18 CEST 2012


On Mon, 21 May 2012, sundar j wrote:
> In my application I need to copy folder content to other folder using shell cp command (since gambas does not support COPY recurse) with wait option. When copying is in progress TextLabel will indicate "Copy in Progress" .  Once copying is complete then TextLable will indicate something else. For some reason wait option in shell command does nothing and I am not able to set the text   "Copy in Progress" in TextLabel properly. Is it bug or am I missing some code?
> ------------------------------------------------------------------------------
> 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

What do you mean by "wait option [...] does nothing"? Does the shell give an error?
I assume that you have something like:

TextLabel.Text = "Copy in progress"
Shell "cp -r <src> <dst>" Wait

If I remember correctly, using this construct prevents the GUI from refreshing itself, so you won't
see anything until the command completes and a new event loop is entered?

I think one could help better with more information.

Regards,
Tobi




More information about the User mailing list