Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. aoroca

    Script Telnet Session Keeping Alive

    The script must wait some arguments or parameter according this telnet session over TARGET. For example my script in PHP: ******************************************* cat Dispatch_pre.php #!/usr/local/bin/php -q <?php function traer_archivo() { $ftp_server=&quot;10.2.15.80&quot;; $conn_id =...
  2. aoroca

    Script Telnet Session Keeping Alive

    HI PHV, Do You can help me with this issue? In directory DIR1 I have a FILE1.txt which is being updated in diferent times. And when this file is new, MySession execute all commands included in this FILE1.txt. I need keep alive this sesion to this specific port. How I can get it? Thanks a lot.
  3. aoroca

    Script Telnet Session Keeping Alive

    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?
  4. aoroca

    Read FIle line by line and perform Script

    I have FILE1 #MOBILE $MESSAGE I need check if this file exist and if it exists I need perform something with each line starting with #MOBILE, because later FILE1 will be removed and created with other different datas. And script must be checking if FILE1 exist. How I can setup last script...
  5. aoroca

    Read FIle line by line and perform Script

    PHV tahnks a lot, Your info was timely.
  6. aoroca

    Read FIle line by line and perform Script

    This is the file to check: tail alert_atel.log ORA-00600: internal error code, arguments: [2845], [0], [60], [0], [], [], [], [] Thu Dec 11 19:31:26 2003 Errors in file /oracle/rdbms/log/atel_ora_521.trc: ORA-00600: internal error code, arguments: [2845], [0], [60], [0], [], [], [], [] Thu Dec...
  7. aoroca

    Read FIle line by line and perform Script

    I modified myscript but when it perform read LINE command, dont work, it stay in standby state, look -------------------------------------- #!/bin/ksh AA=`date +'%Y'` MM=`date +'%m'` DD=`date +'%d'` ruta=/oracle/rdbms/log fecha=$AA$MM$DD MATCH=&quot;Current&quot; tail -f $ruta/alert_atel.log...
  8. aoroca

    Read FIle line by line and perform Script

    Hey SamBones, I need your help again. I need read line by line a File, and when match some info with grep then does something, why: i.e. #!/bin/ksh tail -f File1.lis | while read LINE error=`grep &quot;something on LINE&quot; LINE` if [ -n $error] then #print LINE which match error...
  9. aoroca

    READ line by line a file

    PHV, WORKS GOOD, Thanks a lot and You are so patient. Thanks a lot and see you later.
  10. aoroca

    READ line by line a file

    Sorry, but i can not find the typo, when? how?
  11. aoroca

    READ line by line a file

    I change the script in typo's and add new info print &quot;submit\n$MOBILE\n\n5710000001\n\n\n\n\n\n\n\n\n\n\n\n$MSG\ny\nexit\n\&quot;| sms_operator >/dev/null 2>&1 but have problems with 35 line. why? --------------------------------------------- [smsadm@smsbog]$vi data3...
  12. aoroca

    READ line by line a file

    Yes, I am working with KSH over AIX. #!/bin/ksh
  13. aoroca

    READ line by line a file

    PHV, i have other issues, please review this info. Thanks a lot. [smsadm@smsbog]$sh -x data3 + alias SMOperator=sms_operator + path1=/usr/EBS/ADCSoftware/smsadm/Alex + awk -F, { printf &quot;ip[%d]=\&quot;%s\&quot;;inf[%d]=\&quot;%s\&quot;\n&quot;,NR,$1,NR,$0 }...
  14. aoroca

    READ line by line a file

    When I run script, i can see an error at line 4 [smsadm@smsbog]$sh -x data3 + alias SMOperator=sms_operator + path1=/usr/EBS/ADCSoftware/smsadm/Alex data3[4]: 0403-057 Syntax error at line 4 : `(' is not matched.
  15. aoroca

    READ line by line a file

    I have some problems. I use KSH and have problems with 2 variable, why: if [ -z $a ] if [ -n $a ] How I can configure these 2 lines: May be $a must be &quot;$a&quot;, a => some characteres and I need know when $a is different to 0 and equal to 0 in long of chars, in order to check...
  16. aoroca

    READ line by line a file

    PHV Ok It looks good, thanks a lot, but i have one problem in myscript with some variable (ARRIBA=1), is it possible you can check and tellme why dont works 2nd part of my script when IP add is down and get UP. Thank you...
  17. aoroca

    READ line by line a file

    vgersh99 How I can integrate your script with PHV script in order to read line by line and get a loop
  18. aoroca

    READ line by line a file

    PHV thanks a lot. I vahe this info cat ip_add.txt 192.168.28.2 , VoiceMail 192.168.32.3 , Avisor Internet SMS Comtor 172.28.3.10 , Avisor Operadora Teledatos 172.28.3.11 , Avisor Operadora Teledatos 10.2.78.36 , PC Alex And I need get 1st field (IP add) SUCCESSFUL, and get all line IPADD +...
  19. aoroca

    READ line by line a file

    I need get in a temporal VARIABLE data by data and execute something when i read line by line, then performe something with script
  20. aoroca

    READ line by line a file

    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...

Part and Inventory Search

Back
Top