1

I'm new here. We have a vbs script for a backup on our server.

we send Linux commands with sendkeys. the specific command is:

objWshShell.SendKeys "tar -cvpzf /mnt/system/system.tar.gz --one-file-system /"

working fine.

i want to terminate the vbs script, when the tar process on server has terminated.

thanks

M.T.R
  • 11
  • 3
  • 1
    http://stackoverflow.com/questions/9117507/linux-unix-command-to-determine-if-process-is-running – Dave Jul 25 '16 at 11:20
  • well, i think i found a solution: 1. i entered a "; exit" after the tar command to logout. 2. i modified securecrt, our ssh client to close if logged out 3 i created a vbscript loop determinating if securecrt is active, if not (the case when logged out) i open a dialog saying that backup was successfully. that's it now i have not to calculate a wscript.sleep pause, which could be too short or which would be too long .. cheers – M.T.R Jul 25 '16 at 22:08

0 Answers0