-
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
- Ú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
- Eladó ARCADE ATARI Gamestation Pro - RETRO játékkonzol 200+ beépített játékkal, ÚJ,bolti ár alatt!!
- Százezrekkel ár alatt! Új bontatlan magyar bill asus zephyrus 2024 es modell! Oled , ryzen AI 370hx
- Umax VisionBook N15G Plus laptop, új, Magyar Windows
- AMD Ryzen 9 7950X3D Gaming Processor 3 év Ipon Gari
- ZOTAC H55-ITX Wifi MiniITX félkonfig
- ÚJ HP EliteBook 845 G11 - 14" WUXGA IPS - AMD Ryzen 5 8640U - 16GB - 512GB - Win11 - 3 év garancia
- LG 25GR75FG - E-Sport Monitor - FHD 360Hz 1ms - NVIDIA Reflex + G-sync - AMD FreeSync - HDR 400
- Jogtiszta Microsoft Windows / Office / Stb.
- Csere-Beszámítás! RTX Számítógép játékra! R5 5500 / RTX 3060Ti / 32GB DDR4 / 500GB SSD
- Bomba ár! Lenovo ThinkPad Yoga X390 Sérült - i7 I 8GB I 256SSD I 13,3" FHD Touch I Cam I W11 I Gari!
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest