Sponsored Content
Full Discussion: Curl, to send text message
Operating Systems AIX Curl, to send text message Post 303033424 by bakunin on Friday 5th of April 2019 06:00:54 AM
Old 04-05-2019
Quote:
Originally Posted by samthewildone
After a quick search, it seems that you would need a 3rd party service that sends text messages as curl is unable to do this alone.

I'm pretty sure there may be a way but it would be more complex than just going through a 3rd party.
You are right, cURL is just a "programmable web browser", so to say. You will need to have some (web-) service to actually send SMSs available and you will be able to use cURL to contact/use them from a script. There is no "genuine" way to send SMS from an AIX system (or any other system, for that matter). For any service you use (which always will be "3rd party" in nature) you will need some tool to contact it and make use of it. If this is a web service, cURL (or, alternatively, wget, which is similar in scope) will what you need.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

Sendmail keep a user from send message

Hello, i have a problem with my sendmail, i want' to keep a user from sending mail, how can i process ? My user is titi, and i don't want' that titi can't send mail via sendmail is it possible ? thnak a lot (1 Reply)
Discussion started by: westside
1 Replies

2. UNIX for Dummies Questions & Answers

send message across terminals

Hello: How would you send message to other unix users logged in into the system now.. what should i verify, before sending them a mail across that displays mesage on the terminal. Any man pages? Thanks, ST2000 (2 Replies)
Discussion started by: ST2000
2 Replies

3. UNIX for Dummies Questions & Answers

Send message from Unix to PC

What is the best way to send message from Unix script to PC users connected to the box ? I tried "smbclient -M <machine>" but doesn't work. I prefer not to use Samba. Thanks. (3 Replies)
Discussion started by: mnagaya
3 Replies

4. Shell Programming and Scripting

error-when trying to send the message thru email.

Hi All, I want to send a message through email. I have written below code. But it is not worling. Anybody has idea, why it is not working?. export $file1=$home1/pip1.$$ mailx -s "This Message from unix" abc@yahoo.com< $file1 thanks,Mary. (5 Replies)
Discussion started by: MARY76
5 Replies

5. UNIX for Advanced & Expert Users

To send a message to another system

How to send a message to another unix terminal along with the date specified (4 Replies)
Discussion started by: aajan
4 Replies

6. UNIX for Dummies Questions & Answers

Send Text message from unix to windows

Hi Buddies, I have a unix client and want to send a message (containg some data) to a windows Database server to query from it and return the result. I shall be so thankfull if you help me out.:b::) Warm Regards, Jessi (1 Reply)
Discussion started by: jessica-adams
1 Replies

7. UNIX for Advanced & Expert Users

Issue in Curl to send http POST request with attachment/multipart

Hi, I am using curl to hit a url using http in solaris 10 using commandline, I want to transfer an attachment(using multipart curl -F) also as a part of the request. If anyone has used kindly help me with the syntax. I am using below command: Code: /usr/local/bin/curl -v... (1 Reply)
Discussion started by: manishmaha
1 Replies

8. Post Here to Contact Site Administrators and Moderators

Cannot send new Private Message (PM)

To be able to send PMs your post count must be 10 or greater. You currently have 16 posts. If you have a question for the forum moderators and/or administrators, please post your question here. ...you might want to try searching the forums: What am I doing wrong? (3 Replies)
Discussion started by: -=XrAy=-
3 Replies

9. Shell Programming and Scripting

Use curl to send a static xml file using url encoding to a web page using pos

Hi I am try to use curl to send a static xml file using url encoding to a web page using post. This has to go through a particular port on our firewall as well. This is my first exposure to curl and am not having much success, so any help you can supply, or point me in the right direction would be... (1 Reply)
Discussion started by: Paul Walker
1 Replies

10. AIX

send SMS via curl

I need from aix to send an SMS, you know if the command curl serves me (3 Replies)
Discussion started by: tricampeon81
3 Replies
GSMSENDSMS(8)						      System Manager's Manual						     GSMSENDSMS(8)

NAME
gsmsendsms - SMS message sender utility SYNOPSIS
gsmsendsms [ -b baudrate ] [ --baudrate baudrate ] [ -c concatenatedID ] [ --concatenate concatenatedID ] [ -C service centre address ] [ --sca service centre address ] [ -d device ] [ --device device ] [ -h ] [ --help ] [ -I init string ] [ --init init string ] [ -r ] [ --requeststat ] [ -t ] [ --test ] [ -v ] [ --version ] [ -X ] [ --xonxoff ] phonenumber [ text ] DESCRIPTION
gsmsendsms sends SMS short messages using an GSM mobile phone. gsmsendsms attaches itself to the device given on the command line (usually an GSM modem) using the specified baudrate. If no device is given, the device /dev/mobilephone is used. If no baudrate is given, a default baud rate of 38400 is used. gsmsendsms accepts a phone number (recipient address) and the short message text as parameters. The text may have a maximum length of 160 characters which is the maximum SMS message length. The GSM default alphabet is used for encoding. ASCII and Latin-1 characters that can not be encoded using the GSM default alphabet are converted to the GSM delta character (GSM code 16). Error messages are printed to the standard error output. If the program terminates on error the error code 1 is returned. OPTIONS
-b baudrate, --baudrate baudrate The baud rate to use. -c concatenatedID, --concatenate concatenatedID If an ID is given, large SMSs are split into several, concatenated SMSs. All SMSs have the same ID and are numbered consecutively so that the receiving phone can assemble them in the correct order. IDs must be in the range 0..255. Not all receiving phones will sup- port concatenated SMSs (and display them as separate SMSs), since all the numbering and ID information is carried in the user data header element at the beginning of the SMS user data. This information may show up as garbage in such phones. -C service centre address, --sca service centre address Sets the service centre address to use for all SUBMIT SMSs (may not work with some phones). -d device, --device device The device to which the GSM modem is connected. The default is /dev/mobilephone. -h, --help Prints an option summary. -I init string, --init init string Initialization string to send to the TA (default: "E0"). Note that the sequence "ATZ" is sent first. -r, --requeststat Request status reports for sent SMS. -t, --test If this option is given the text is converted to the GSM default alphabet and back to Latin-1. This option can be used to find out how ASCII or Latin-1 texts are converted to the GSM default alphabet. Characters that can not be converted to the GSM default alpha- bet are reported as ASCII code 172 (Latin-1 boolean "not") after this double conversion. No SMS messages are sent, a connection to a mobile phone is not established. -v, --version Prints the program version. -X, --xonxoff Uses software handshaking (XON/XOFF) for accessing the device. EXAMPLES
The following two invocations of gsmsendsms each send the same SMS message to the number "1234": gsmsendsms -d /dev/ttyS2 -b 19200 1234 "This is a test." echo "This is a test." | gsmsendsms -d /dev/ttyS2 -b 19200 1234 FILES
/dev/mobilephone Default mobile phone device. AUTHOR
Peter Hofmann <software@pxh.de> BUGS
Report bugs to software@pxh.de. Include a complete, self-contained example that will allow the bug to be reproduced, and say which version of gsmsendsms you are using. COPYRIGHT
Copyright (C) 1999 Peter Hofmann gsmsendsms is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as pub- lished by the Free Software Foundation; either version 2, or (at your option) any later version. gsmsendsms is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL- ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with gsmsendsms; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. SEE ALSO
gsminfo(7), gsmpb(1), gsmctl(1), gsmsmsd(8), gsmsmsstore(1). gsmsendsms v1.10 Sat Jun 16 22:10:00 UTC 2012 GSMSENDSMS(8)
All times are GMT -4. The time now is 12:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy