Sponsored Content
Full Discussion: Send SMS to mobile
Top Forums UNIX for Advanced & Expert Users Send SMS to mobile Post 303041558 by Neo on Wednesday 27th of November 2019 09:02:17 PM
Old 11-27-2019
Quote:
Originally Posted by jgt
You don't need an SMS gateway, if you know the carrier that the cell phone number is attached to. for example:
Code:
number=cell_phone_number
carrier="msg.telus.com"
mail -s "subject" $number@$carrier" <email.message"

You are describing an email to SMS gateway service provided by some carriers.

These types of email to SMS gateways are becoming more and more rare these days, generally speaking.
 

6 More Discussions You Might Find Interesting

1. Programming

can anyone send sms application

actually i need this sms application ,to gain some knowledge in linux platform. (1 Reply)
Discussion started by: parvathy
1 Replies

2. IP Networking

Send SMS from PC to mobile phones

Hi All, Can any expert provide me a guide on how i can send SMS from pc to mobile phone using VBA or some other language ? I am a newbie in networking. (1 Reply)
Discussion started by: Raynon
1 Replies

3. UNIX for Advanced & Expert Users

Script which will run every 10minutes and Send SMS to mobile

Hello Genuis guys, I am running Aix5 and Oracle 9 on it. I have sql query which only count a particular rows. I need to prepare a script which will run that sql query every 10 minutes and if the ouput count is greate than 20. It will send SMS to mobile numbers. Need your kind help to... (8 Replies)
Discussion started by: thepurple
8 Replies

4. Shell Programming and Scripting

Bash script to send SMS

Hey guys I was wondering how to go about creating a bash script to send SMS..any ideas are appreciated.. (2 Replies)
Discussion started by: blackzeus
2 Replies

5. UNIX for Dummies Questions & Answers

Need to set up UNIX script to send sms on mobile

Hi All, Can anyone please help in setting up Unix script for sending text messages on mobile?? Actually scenario is we want notification when there is any failures in our processes or if any service goes down we must be notified by a text message on our mobile, we already have email... (3 Replies)
Discussion started by: NikhilM
3 Replies

6. 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
SNMP_ATM(3)						   BSD Library Functions Manual 					       SNMP_ATM(3)

NAME
atmif_event_f, atm_find_if_name, atm_find_if, atm_notify_aif, atm_unnotify_aif -- ATM driver module for snmpd. LIBRARY
(begemotSnmpdModulePath."netgraph" = /usr/lib/snmp_netgraph.so (FreeBSD)) (begemotSnmpdModulePath."mibII" = /usr/lib/snmp_mibII.so) (begemotSnmpdModulePath."atm" = /usr/lib/snmp_atm.so) SYNOPSIS
#include <bsnmp/snmpmod.h> #include <bsnmp/snmp_mibII.h> #include <bsnmp/snmp_atm.h> typedef void (*atmif_event_f)(struct atmif *aif, enum atmif_notify event, uintptr_t data, void *uarg); struct atmif * atm_find_if_name(const char *name); struct atmif * atm_find_if(u_int ifindex); void * atm_notify_aif(struct atmif *aif, const struct lmodule *mod, atmif_event_f func, void *uarg); void atm_unnotify_aif(void *not); DESCRIPTION
The snmp_atm module implements a number of tables and scalars that enable remote access to the ATM devices in the system. It also exports a number of functions, that allow other modules to easily access ATM devices. The module maintains an extension to the interface structure exported by snmp_mibII(3) for all ATM devices. This structure has the following fields: struct atmif { struct mibif *ifp; /* common interface data */ struct atmif_mib *mib; /* ATM MIB */ enum atmif_carrier_state carrier; enum atmif_suni_mode mode; /* SUNI mode SDH or SONET */ }; The fields have the following meaning: ifp The field points to the snmp_mibII(3) interface structure. mib The special ATM interface MIB (see below). carrier The current state of the carrier. One of the following: ATMIF_CARRIER_ON carrier detected, ATMIF_CARRIER_OFF no carrier, ATMIF_CARRIER_UNKNOWN the state of the carrier is unknown, ATMIF_CARRIER_NONE the device has no notion of carrier or is not able to sense it. mode For ATM devices with a SUNI chip this is the current mode of the interface: ATMIF_SUNI_MODE_SONET The interface is in SONET mode. ATMIF_SUNI_MODE_SDH The interface is in SDH mode. ATMIF_SUNI_MODE_UNKNOWN The interface either has no SUNI interface or the mode is unknown (for example, interface is down). An ATM interface can be found by name or by SNMP interface index (see snmp_mibII(3) for a discussion of interface indexes). The function atm_find_if_name() searches an interface given a name. The function atm_find_if() searches an interface by its interface index. Both func- tions return NULL if an interface cannot be found. The ATM MIB contains the following fields: struct atmif_mib { u_int version; /* currently 0 */ u_int device; /* type of hardware (system specific) */ u_int serial; /* card serial number (device specific) */ u_int hw_version; /* card version (device specific) */ u_int sw_version; /* firmware version (device specific) */ u_int media; /* physical media (see MIB) */ u_char esi[6]; /* end system identifier (MAC) */ u_int pcr; /* supported peak cell rate */ u_int vpi_bits; /* number of used bits in VPI field */ u_int vci_bits; /* number of used bits in VCI field */ u_int max_vpcs; /* maximum number of VPCs */ u_int max_vccs; /* maximum number of VCCs */ }; NOTIFICATIONS An other module can register with atmif_event_f to receive notifications when certain events happen on the ATM interface. The registration is done with atm_notify_aif() which takes a pointer to the interface, the calling module pointer, a callback function and a user argument that is passed to the callback function. The callback function is called with the interface pointer, a notification code, a notification argument and the user argument. The following notifications are defined: ATMIF_NOTIFY_DESTROY The interface is destroyed. The notification argument is not used. ATMIF_NOTIFY_CARRIER The carrier state on the interface has changed. The argument is the old state of the carrier. The new state can be obtained from the interface structure. ATMIF_NOTIFY_VCC A permanent VCC has been created or destroyed. The argument is an u_int that can be decoded as follows: vpi = (arg >> 24) & 0xff; vci = (arg >> 8) & 0xffff; state = arg & 1; state is 0 if the VCC was destroyed and 1 if it was created. The registration for notification can be undone by passing the return value from atm_notify_aif() to atm_unnotify_aif(). The registrations is automatically removed if the interface is destroyed. MIB The MIB implemented by the module is defined in BEGEMOT-ATM.txt. In the generic part there are two tables and one scalar, there is also a system specific group: begemotAtmIfTable This table is an extension of ifTable. It contains a row for each ATM interface and is index with ifIndex. All fields are read-only except the begemotAtmIfMode column. begemotAtmIfTableLastChange Contains the tick when a row was created or destroyed in the above table or 0, if the table did not change since start of the SNMP agent. begemotAtmHWTable Is also indexed by ifIndex and contains hardware specific information. This table is read-only. FILES
/usr/share/snmp/defs/atm_tree.def The description of the MIB tree implemented by atmif_event_f. /usr/share/snmp/mibs/BEGEMOT-ATM.txt This is the MIB that is implemented by this module. SEE ALSO
bsnmpd(1), gensnmptree(1), snmp_mibII(3), snmpmod(3), snmp_netgraph(3) AUTHORS
Hartmut Brandt <harti@FreeBSD.org> BSD
May 23, 2005 BSD
All times are GMT -4. The time now is 04:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy