# How to execute a process and not wait for it?

**URL:** https://talk.remobjects.com/t/how-to-execute-a-process-and-not-wait-for-it/3509
**Category:** Train
**Created:** [December 16, 2013, 2:55pm UTC](https://talk.remobjects.com/t/how-to-execute-a-process-and-not-wait-for-it/3509 "2013-12-16T14:55:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![VGeorgiev](https://talk.remobjects.com/user_avatar/talk.remobjects.com/vgeorgiev/32/88_2.png) [@VGeorgiev](https://talk.remobjects.com/u/VGeorgiev)
#### Post date: [December 16, 2013, 2:55pm UTC](https://talk.remobjects.com/t/how-to-execute-a-process-and-not-wait-for-it/3509/1 "2013-12-16T14:55:46Z")

</div>

In one Train build script I want to build some installers and then synchronize them with Dropbox. So I copy the files to a specified folder and need to run the Dropbox executable. I just want to run it and forget it and not wait for the sync to finish.

So how can I execute it without waiting and without causing errors and warning in the script?  
`shell.exec(DropBoxBinary, '', {timeout:0})` produces a timeout error. Without the timeout parameter it waits forever… (till Dropbox is closed manually)  
The `shell.execAsync` doesn’t wait immediately, but tries to wait at the end of the script.

So is there a way to do it, or should I just ignore the errors?

Thanks.

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [December 17, 2013, 8:16am UTC](https://talk.remobjects.com/t/how-to-execute-a-process-and-not-wait-for-it/3509/2 "2013-12-17T08:16:43Z")

</div>

Should be fixed now. Pass a negative timeout to the shell.exec function with the latest source and it will not wait all.

---

<div class="post-metadata">

### Author: ![VGeorgiev](https://talk.remobjects.com/user_avatar/talk.remobjects.com/vgeorgiev/32/88_2.png) [@VGeorgiev](https://talk.remobjects.com/u/VGeorgiev)
#### Post date: [December 17, 2013, 11:06am UTC](https://talk.remobjects.com/t/how-to-execute-a-process-and-not-wait-for-it/3509/3 "2013-12-17T11:06:02Z")

</div>

Thanks. That solved it.
