Hey Guys,
I need your timely help!
I need establish a telnet session in one device, and keep alive this connection and performe some commands over this seesion.
How I can develop this script in order to connect to my 2device?
How I can create a function that read line by line a file, and this data can be included in other script and performed activity, then continue with 2nd line.
FILE 1
192.168.23.4 Hola
198.65.45.6 Mundo
FILE 2 Script
get file 1 column 1 = 192.168.23.4
execute something with 192.168.23.4...
I need info why don work properly myscript...
I appreciate your time !!
#!/usr/bin/ksh
AL=10.2.78.36 # PC Alex
path=$HOME/Alex
arriba="1"
date=`date -u`
while [ $arriba ]
do
a=`netstat | grep smpp | grep $AL | grep ESTABLISHED`
if [$arriba -eq 1]...
When I check NETSTAT I can see IP's connected to my Device by SMPP way, with status ESTABLISHED.
Is important for me check this IP and notify when someone of this IP change your status (different to ESTABLISH). I need :
check IP connections
report a log when IP is down or UP
execute a program...
How I can read a file line by line and compare results with some parameters then performe automatically a script.
I wish read the last line in File1 which is populated periodically.
FILE1
line1
line2
...
...
...
LineN Now read this line
...
...
LineN+X Then i wish read this line and...
I need a good SMPP application in order to plug with a GSM network. Someone have SMPP Api's or Line Command App which I can setup (IP Address, Port, And other field over SMPP Protocol).
Thanks alot
need your help about a script I wish do. I have 2 dynamic files (file1 and file2, like a little Data Base), and its important compare this files and get a file3 with your differences, for example:_
FILE1 DB TO COMPARE
5851388
5859999
4164754
6123574
3214587
FILE2 RAW INPUT
9874563 The...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.