Re: [Cppcms-users] cppcms::service and system(..)
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-07-19 07:56:56
|
Make sure you do not call system from asynchronous application - call it only from thread pool In general I don't see why shouldn't system work. I have some project that run latex from the application (even thou not using system but rather using fork+exec) Bottom line show the code. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Christian Gmeiner <chr...@gm...> >To: cpp...@li... >Sent: Wednesday, July 18, 2012 2:03 PM >Subject: [Cppcms-users] cppcms::service and system(..) > >Hi all, > >I would like to implement a Service class based on cppcms::service. I would like >to trigger the rpc call via java script (works) and in the Service >class I would like >to use system() function to execute a bash script. > >If after executing/while executing the system function the cppcms apps >hangs completely. >My Service implements also a RPC call which does a reboot of the >system - which works. > >Any idea what could went wrong? > >thanks >--- >Christian Gmeiner, MSc > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |