executing linux shell script from within c++.net

J

jaywelbourn

Hi,

I'm trying to use a .net windows application within linux, using WINE,
to run a shell script. The reason is that I need to use linux's dd
command on a ext2 filesystem that's on an external drive, and .net
doesn't seem to support this, and I don't want to rewrite my entire
application for linux just to use this command. Should
system("script") work? right now, when I try that, system() is
returning 0, which I presume means that the script isn't being called
properly.

Any help would be very much appreciated.

Thanks,
John
 
V

Victor Bazarov

I'm trying to use a .net windows application within linux, using WINE,
to run a shell script. The reason is that I need to use linux's dd
command on a ext2 filesystem that's on an external drive, and .net
doesn't seem to support this, and I don't want to rewrite my entire
application for linux just to use this command. Should
system("script") work?

'system', while a standard function, has implementation- and platform-
specific behaviour which is off-topic here. Please ask in the newsgroup
dedicated to your platform.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top