![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Dec 2007
Posts: 28
Rep Power: 0
![]() |
Re: Cross-platform exec()
Thanks! But does this mean that on UNIX based systems, in cases where you don't have to do anything (or have to wait) for the child to terminate, it is wiser to use system() than doing
c Syntax (Toggle Plain Text)
because for one, it is shorter to write , and second, it is cross-platform (which is pretty much my aim)? |
|
|
|
|
|
#12 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,209
Rep Power: 5
![]() |
Re: Cross-platform exec()
Given that command shells (the things executed by system() on unix variants, as an intermediary to executing your string) vary between flavours of unix, and also with whims of system administrators or end users (eg selection of different shells), the action of system("some_string") varies a lot. It is often better to KNOW the results of code, than to rely on system behaviour that can change without your control.
|
|
|
|
|
|
#13 |
|
Expert Bug Developer
Join Date: Apr 2008
Posts: 21
Rep Power: 0
![]() |
Re: Cross-platform exec()
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Coder's Block Arena - The Game AI Platform | Sane | Existing Project Development | 23 | May 6th, 2008 9:12 PM |
| Which Flavor: CPython or IronPython and Exec Opts | Kigneer | Python | 2 | Apr 6th, 2008 10:36 PM |
| Php with Sun Java System Application Server Platform | lucifer | PHP | 0 | Jun 7th, 2007 4:03 AM |
| Need help from someone who has downloaded microsoft platform sdk | rsnd | Other Programming Languages | 3 | Feb 18th, 2006 5:04 PM |
| Platform Api | jstephens | C | 3 | Jan 2nd, 2006 5:17 PM |