PDA

View Full Version : executing commands, hav to wait?!


tgf2k4
09-17-2005, 05:05 PM
hello,

ive got a problem. i added a new site command:

check = EXEC ..\scripts\check.bat.

the bat is:

check.exe %1 %2 %3 %4 >> ..\site\check\result.txt

i can execute commands like: site check -hdd -dvd -system and so on. works fine :)

but i have to wait until commands end. and if i want to scan for viruses remotely it takes very long and so i wont wait until the command ends.

is there a solution to execute a command and quit with client software but the command is executed all the time by the server until it ends?!

some solution would be nice ;)

thank you very much :)

Harm
09-17-2005, 05:16 PM
You can try to echo !detach 0. This will detach the application from ioFTPD and make it return 0 (the return value is the parameter to the !detach command). The application continues to run in the background.

tgf2k4
09-17-2005, 05:19 PM
ok and where i have to type it? in the site check command or in the bat?

can you give me an example?

thx

tgf2k4
09-17-2005, 05:25 PM
ok i got it
it have to be in the bat

thank you very much :)