Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 6:25
Mohamed_Khalil13-Oct-09 6:25 
AnswerRe: I have problem with C for passing ARGS to main function in LINUX Pin
David Crow13-Oct-09 6:28
David Crow13-Oct-09 6:28 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 6:33
Mohamed_Khalil13-Oct-09 6:33 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 6:39
Mohamed_Khalil13-Oct-09 6:39 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
David Crow13-Oct-09 6:43
David Crow13-Oct-09 6:43 
AnswerRe: I have problem with C for passing ARGS to main function in LINUX Pin
Richard MacCutchan13-Oct-09 6:39
mveRichard MacCutchan13-Oct-09 6:39 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 6:53
Mohamed_Khalil13-Oct-09 6:53 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Richard MacCutchan13-Oct-09 7:04
mveRichard MacCutchan13-Oct-09 7:04 
dr.nokia wrote:
not like your code execvp("ls","-1");


I didn't post any code Confused | :confused:

dr.nokia wrote:
but it's possible to put any command I prefer?


It's some while since I did this, or used Linux, but in theory I think you can put any command into the exec() functions. The key as always is getting your parameters organised correctly according to the version of the exec() call that you are making.

As I said before, I think the important thing is to get comfortable with parsing strings and using function calls and their parameters correctly. Once you have your head round those concepts then the second half is easy.
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 7:10
Mohamed_Khalil13-Oct-09 7:10 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Richard MacCutchan13-Oct-09 7:20
mveRichard MacCutchan13-Oct-09 7:20 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 7:25
Mohamed_Khalil13-Oct-09 7:25 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 7:29
Mohamed_Khalil13-Oct-09 7:29 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Richard MacCutchan13-Oct-09 9:12
mveRichard MacCutchan13-Oct-09 9:12 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Bram van Kampen13-Oct-09 12:58
Bram van Kampen13-Oct-09 12:58 
QuestionLOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju13-Oct-09 5:48
Vetukuri Raju13-Oct-09 5:48 
AnswerRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
«_Superman_»13-Oct-09 9:10
professional«_Superman_»13-Oct-09 9:10 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju13-Oct-09 22:15
Vetukuri Raju13-Oct-09 22:15 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
«_Superman_»14-Oct-09 7:32
professional«_Superman_»14-Oct-09 7:32 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju13-Oct-09 22:15
Vetukuri Raju13-Oct-09 22:15 
AnswerRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Bram van Kampen13-Oct-09 13:09
Bram van Kampen13-Oct-09 13:09 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju14-Oct-09 6:04
Vetukuri Raju14-Oct-09 6:04 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Bram van Kampen14-Oct-09 10:20
Bram van Kampen14-Oct-09 10:20 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju22-Oct-09 1:41
Vetukuri Raju22-Oct-09 1:41 
QuestionFacing problem with Sockets in Win2008 Pin
V K 213-Oct-09 4:26
V K 213-Oct-09 4:26 
QuestionCustomButton Pin
ratprita13-Oct-09 1:19
ratprita13-Oct-09 1:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.