-
Fototrend
Mikrotik routerekkel foglalkozó téma. Mikrotik router típusok, hardverek, router beállítások, programozás (scriptek írása), frissítés, és minden Mikrotik routerrel kapcsolatos beszélgetés helye.
Új hozzászólás Aktív témák
-
kovyhun
tag
válasz
byson55 #8725 üzenetére
Szia,
én ezt használom:
# Script to forward SMS from GSM Modem Inbox to Email #
# Note: The SMS is removed from the inbox after being sent to Email, #
# even if the Email fails to be sent #
# Remember to set up /Tools/SMS with the USB port of your #
# Modem and the info channel. Put anything in secret and #
# make sure Receive Enabled is ticked #
# Tested on Rb751U RouterOS v5.12 with Huawei E367 #
# Peter James 2012-04-04 #
:local EmailAddress "your_email_address";
:local smsPhone;
:local smsTimeStamp;
:local smsMessage;
:local smsContent;
# Get System Identity #
:local SystemID [/system identity get name];
:log info "SMS to Email script started";
# Set Receive Enabled, in case it was cleared by a router reboot #
/tool sms set receive-enabled=yes;
delay 2;
# loop through all the messages in the inbox #
:foreach i in=[/tool sms inbox find] do={
:set smsPhone [/tool sms inbox get $i phone];
:set smsTimeStamp [/tool sms inbox get $i timestamp];
:set smsMessage [/tool sms inbox get $i message];
:set smsContent "Router ID: $SystemID\nSMS Received from: $smsPhone\nDate&Time: $smsTimeStamp\nMessage: $smsMessage";
:log info $smsContent;
/tool e-mail send tls=yes subject="$SystemID GSM Modem SMS Received" to=$EmailAddress body="$smsContent";
# Now remove the SMS from the inbox #
/tool sms inbox remove $i;
delay 10;
}
# clear Receive Enabled, so info channel can be used by other scripts #
/tool sms set receive-enabled=no;
:log info "SMS to Email script complete";(Nem engedi ez az új fórum programkódba formázni)
Új hozzászólás Aktív témák
- Xbox Classic / Xbox 360
- NVIDIA GeForce RTX 5070 / 5070 Ti (GB205 / 203)
- Nem fogy rosszul az iPhone 16e
- AMD Ryzen 9 / 7 / 5 9***(X) "Zen 5" (AM5)
- Nagyrobogósok baráti topikja
- Hálózatokról alaposan
- Milyen billentyűzetet vegyek?
- Mibe tegyem a megtakarításaimat?
- Milyen egeret válasszak?
- NVIDIA GeForce RTX 4080 /4080S / 4090 (AD103 / 102)
- További aktív témák...
- Lenovo T495 14" AMD Ryzen 7 3700U 16GB 250GB SDD laptop notebook eladó
- ÚJ ASUS Zenbook 14 Laptop Ultrabook -40% Ultra 7 155H 16GB/1TB 3K OLED 120Hz Intel Arc
- Lenovo Yoga Slim 7 Pro 16ACH6 R7 5800H 16GB RAM 512GB SSD RTX3050 16" Win10
- Eladó Ubiquiti Unifi USG-3P Gateway Router 2db!
- Eladó Ubiquiti Unifi Cloud Key (UC-CK) Gen1!
- Samsung 16gb (2x8) DDR3 1600MHz notebook Ram kit
- Autóindító powerbank, zseblámpa, 10.000 mAh
- Xiaomi 14T 5G 12/256GB, Dual Sim, Független, Alig használt , 3 év jotálás elős perctől védőfoliával
- UTOLSÓ DB!!! Eladó (itthon nem kapható!!!) Jays (Svéd) Bontatlan/Eredeti bluetoothos partybox
- Eladó JBL Partybox 710 BONTATLAN/EREDETI
- Telefon felvásárlás!! Samsung Galaxy A20e/Samsung Galaxy A40/Samsung Galaxy A04s/Samsung Galaxy A03s
- Telefon felvásárlás!! iPhone 13 Mini/iPhone 13/iPhone 13 Pro/iPhone 13 Pro Max/
- 3DKRAFT.HU - 3D NYOMTATÁS - AZONNALI ÁRAJÁNLAT - GYORS KIVITELEZÉS - 475+ POZITÍV ÉRTÉKELÉS
- Bomba ár! Lenovo ThinkPad T480s - i5-8GEN I 8GB I 256GB I 14" FHD I HDMI I Cam I W11 I Gari!
- AKCIÓ! GIGABYTE B550M R7 5800X 32GB DDR4 512GB SSD STRIX RTX 2060 Super 8GB Zalman S2 TG MSI650
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest