By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,948 Members | 1,215 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,948 IT Pros & Developers. It's quick & easy.

about system() in unix

P: n/a
In c++ under unix, I use system("cadence") to call candence. But it
does not work. what is the problem?

Thank you..

Nov 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"vivian" <wa*****@yahoo.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
In c++ under unix, I use system("cadence") to call candence. But it
does not work. what is the problem?

Thank you..


Perhaps you should use system("candence") ?

Other possibilities are that you have not set the PATH variable correctly,
or that
you have a typo in the name still.
Nov 22 '05 #2

P: n/a
thank you. It should be "cadence"... and I can run cadence at all the
directories. but can not
call it from c++.

Nov 22 '05 #3

P: n/a
vivian wrote:

thank you. It should be "cadence"... and I can run cadence at all the
directories. but can not
call it from c++.


Then you need to figure out what the difference is.
Do you know what system() does?

it starts a new shell and passes the string you gave it
to the command processor of that shell.

So if that command processor is not able to start that program
than it has something to do with the configuration of that
shell and not with C++ per se.

Maybe the Unix-guys down the road in a different newsgroup
can help you better.

--
Karl Heinz Buchegger
kb******@gascad.at
Nov 22 '05 #4

P: n/a
In article <11**********************@g49g2000cwa.googlegroups .com>,
vivian <wa*****@yahoo.com> wrote:
thank you. It should be "cadence"... and I can run cadence at all the
directories. but can not
call it from c++.


Even if your reduce your program down to nothing but the system() call?
--
Greg Comeau / Celebrating 20 years of Comeauity!
Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Nov 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.