The UNIX and Linux Forums  

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 05: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-18-2003 11:55 PM
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-17-2008
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-17-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 5,205
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
linux commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 12:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66