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 > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sorting received mail in unix and another error starla0316 UNIX for Dummies Questions & Answers 0 06-06-2005 03:11 AM
mails from unix server are not being received vkandati UNIX for Dummies Questions & Answers 4 03-09-2005 11:42 AM

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 10-06-2003
JOHNSON JOHNSON is offline
Registered User
  
 

Join Date: Oct 2003
Posts: 7
can C language received information from Linux/Unix

Hi ! Can C -langauge interface with Unix/Linux?
Currently i have written a application for SMS using C programing. I would like to know if i am able to receive information from Unix/Linux so that it can activate the application.
  #2 (permalink)  
Old 10-06-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Yes, c can interface with linux/unix. What sort of info do want to recieve? If you just want your program automatically started at a certain time you can use cron.
  #3 (permalink)  
Old 10-06-2003
JOHNSON JOHNSON is offline
Registered User
  
 

Join Date: Oct 2003
Posts: 7
Hi Perderabo,

I want my SMS application which is written in C++ to send out the error code which is extract from the machine. The machine itself is using HP-UNix. The machine will generate an error code once its encounter an error. I hope to extract this error code from the machine and send to my SMS application so that the users can be notified and attend the error promptly. Users will received the error code throught SMS to their mobile phone
  #4 (permalink)  
Old 03-12-2005
hanafi hanafi is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 2
Quote:
Originally Posted by JOHNSON
Hi Perderabo,

I want my SMS application which is written in C++ to send out the error code which is extract from the machine. The machine itself is using HP-UNix. The machine will generate an error code once its encounter an error. I hope to extract this error code from the machine and send to my SMS application so that the users can be notified and attend the error promptly. Users will received the error code throught SMS to their mobile phone
hi johnson,
i also want to do the same thing(SMS application which is written in C++). can you help me by telling how you solve it
  #5 (permalink)  
Old 03-12-2005
hanafi hanafi is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 2
Hi Perderabo,

I want my SMS application which is written in C++ in linux to send out the error code which is extract from the machine. can you help me?
  #6 (permalink)  
Old 03-12-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
There is a mail client available called mailx on HP-UX and mail on Linux. From the command line you can do stuff like:
echo message | mailx 3015555555@sprintpcs.com
or whatever the email address of your phone is. Because this is sms, you must be careful to keep the message short. That is the only difference bewteen sms and regular email.

From c or c++ your can use system or popen to invoke mailx (or mail) and send a message.
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:40 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