The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk program to select a portion of a line anju Shell Programming and Scripting 3 01-11-2008 06:33 AM
Line works in solo but not in program? nortypig Shell Programming and Scripting 4 08-21-2006 07:52 AM
linux command line admin tool jarkvarma UNIX for Dummies Questions & Answers 1 11-19-2003 12:55 AM
Command line parameter for C program Wing m. Cheng High Level Programming 3 05-18-2002 09:43 AM
about wave file integrating. livic High Level Programming 1 08-19-2001 10:47 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-17-2008
aytida88 aytida88 is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 1
Integrating Linux command Line and C program..

Hi.. I am pretty new to Linux . Jus joined 2 weeks ago. My problem is I need to design a particular Application which needs to communicate the Value calclulate by a C++ program 2 another computer..I have done a bit of socket programming to acheive this(The 2 computers are connected via LAN ) ..Now is there any way 2 automate this , as in , Can i integrate the socket programming commands ( to run them I have to compile n ru n in the terminal) and the Program,. That is to say , is it possible 4 me 2 jus give an input say run the prog. and it starts running the program and communicates the value 2 ..? ?

Pls reply if u didn't understand

So thats my problem.

thnx

Addy
  #2 (permalink)  
Old 06-17-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
Once the program is compiled, you can run it over and over, just like in DOS or Windows.
Suppose you compiled a program myprog.cpp -> myprog. It lives in this directory: /path/to/code.

Code:
/path/to/code/myprog
If it accepts arguments via **argv ->
Code:
/path/to/code/myprog arg1 arg2
Sponsored Links
Closed Thread

Bookmarks

Tags
linux commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0