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 TouchToneTommy 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: *

  • Users: fsanchez13
  • Content: Threads
  • Order by date
  1. fsanchez13

    Need help with IF script

    New to scripting and I can't seem to make this script work any help would be great ps -ef | grep &quot;telnet 10.0.32.36 1011&quot; | nawk '{print $2}' > pidchk ids=`cat pidchk` if ($ids < 0) then echo restart else echo good fi I keep getting this error from the script. the name of...
  2. fsanchez13

    Ok I am really lost here

    I am trying the following nohup telnet 10.10.10.10 1003 > /home/myfile & and everytime I exit it kills the telnet. I thought nohup was suppose to allow me to run a command and then be able to logout without the command being killed? Am I lost on this or just doing someting wrong?
  3. fsanchez13

    Need help with logging..

    I have a terminal server that is connected to another box with a constant flow of data across the link. I need to connect to the terminal server and log everything that comes across this link. I have tried using telnet but of course there is no way that I know of to make this telnet run in the...
  4. fsanchez13

    Need help figuring this out. PLEASE!!!

    I am telneting to a box that has an output flowing from another box When I telnet and redirect output to a file and then tail the file I see the output normal. When I VI the file I see > ^H ^H^H ^H Can anyone tell me how to stop this from happening? If this is the wrong forum for this...
  5. fsanchez13

    Question regarding /usr/bin/date

    Is there a way to do the date command and have it show yesterdays date?
  6. fsanchez13

    Need help removing repeating lines

    I have a outfile that has nothing but time stamps and I need to parse through it and just grab the first two different times I colored them in red. The actual file has many more lines of repeating time stamps but I shortend for this post. Please help!!! 23:59:34 23:59:34 23:59:34 23:59:34...
  7. fsanchez13

    I have a nawk line... Is it possible to...

    I have the following line in a script. Is it possbile to change the red text to an inputted variable? such as $1 an then type script variable?? nawk '/TIME/ {currtime=$2} /SECTION 12:/ {sec=$1&quot; &quot; $2&quot; &quot; $3&quot; &quot; $4} /SECTION 12:/ {print currtime &quot; &quot;sec}...
  8. fsanchez13

    Ok now can this be done by a script?

    Below is a small piece of my data. For simplicity I labeled the columns $1 $2 and so on. from 00:00:00 to 22:00:00 $2 will be the same number Then at the next 00:00:00 it will change to a different number till 22:00:00 and so on. How can I get a script to look between 00:00:00 and 22:00:00...
  9. fsanchez13

    Can anyone tell me where the problem is in this script?

    I was given this script by pmurray99, thank you very very much, below is the script and then below that is a small piece of the data I am using it on and then the Results. If you notice at the very top of the results it took the first line for 750 (which should be the 00:00:00 line) and placed...
  10. fsanchez13

    Is there a scriptiong answer to this question

    I have data that looks sorta like this, only the lines are much longer, Is it possible to make a script that will combine the two lines in only certain columns? Time TG INS OOS USG 01:39:42 50 25 10 1 01:59:42 50 25 10 10 02:39:42 50 25 10 2 02:59:42 50 25...
  11. fsanchez13

    Another problem..Please help..

    Ok when I VI a file I see the following 23:59:41^M SECTION 12: TRUNK GROUP^M ID TGNAME^M 50^M 51^M 52^M 53^M ID IPC OPC OFL MTU USG ITUSG OTUSG^M 50 0 7 0 0 0 0 0^M...
  12. fsanchez13

    Need help deleting a column of data...

    I have data that is formatted like below and I need to delete everything that is in the first column down. I am sure this is easy but for some reason I can seem to do it. 50 25 37 45 50 51 22 99 66 83 52 45 67 23 50 53 123 12 123 445 56 23 345 57 45 57 34 34 76 556 78 34 45 76 345 56 34 567...
  13. fsanchez13

    Stuck again please help

    Thanks vgersh99 and jad I have the following 16:29:38 SECTION 12: TRUNK GROUP ID TGNAME 80 81 82 100 KANSAS-INTRA ID IPC OPC OFL MTU USG ITUSG OTUSG 80 0 15 0 0 2 0 2...
  14. fsanchez13

    Need help removing lines!!!

    I am new to scripting but using cgrep -1 +20 I am pulling data from a section of ROP but when I get to this area since there are not 20 lines of section 12 it pulls in section 15.. How can I then go through and pull out the data from section 15 (everything that is red)? This occurs various...
  15. fsanchez13

    Can anyone tell me where I can find a dowloadable version of cgrep

    I am looking to find cgrep for solaris 9. can anyone help me find this?
  16. fsanchez13

    Question about a perl script I found

    I have 3 machines. 1 Unix box 1 Terminal Server 1 Switch The Switch is sending output messages to a tty that is directly connected to a port on the Terminal Server. I need the Unix Box to establish a connection to the Terminal Server and log everything that comes across this connection to a...
  17. fsanchez13

    Need help setting up logging from a port

    I posted this on Unix Scripting Forum but after finding this one I am thinking this might be a better place to ask for help. I am using a netra running Solaris 8 and access a terminal server via the lan that is serial connected to a ROP (read only printer) This printer outputs in plain text...
  18. fsanchez13

    Need help setting up a looger script

    I am using Solaris 8 and have a port on a terminal server that is connected to a ROP (read only printer) This printer outputs in plain text format and is almost a constant flow of traffic when the port is telnet to. I need a script that will establish a telnet to this port and create and dump...

Part and Inventory Search

Back
Top