-
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
- Autóápolás, karbantartás, fényezés
- Kerékpárosok, bringások ide!
- Samsung Galaxy Watch6 Classic - tekerd!
- gban: Ingyen kellene, de tegnapra
- Óvodások homokozója
- Vélemény: más cég lenne az Intel, ha korábban nevezik ki Lip-Bu Tant
- Xiaomi Watch 2 Pro - oké, Google, itt vagyunk mi is
- ASUS routerek
- Redmi Note 13 4G
- Hővezető paszták
- További aktív témák...
- Új HP Pavilion x360 14-ek Érintős hajtogatós Laptop Tab 14" -35% i5-1335U 8/512 FHD IPS Iris Xe
- Leica SL2 ( 4db Leica Akkumulátor ) + Sigma 24-70mm f/2.8 + kiegészítők
- Playseat Challenge + Logitech G920 + H-váltó + TrueBrake mod
- ÚJ ASUS Zenbook 14 Érintős Laptop Ultrabook -40% Ultra 9 185H 32GB/1TB 3K OLED 120Hz NumberPad
- AKCIÓÓÓ! GAMER PC// Ryzen 5 3600// Rx 5600 xt challenger pro
- Telefon felvásárlás!! iPhone 15/iPhone 15 Plus/iPhone 15 Pro/iPhone 15 Pro Max
- Bomba ár! Lenovo ThinkPad T14s Gen2 - i5-1145G7 I 16GB I 256SSD I 14" FHD Touch I W11 I NBD Gar!
- Bomba ár! HP ProBook 455 G5 - AMD A10 I 8GB I 128GB SSD I 15,6" FHD I Cam I W10 I Garancia!
- Egyedi ékszerdobozka
- Telefon felvásárlás!! iPhone X/iPhone Xs/iPhone XR/iPhone Xs Max
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest