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 gkittelson 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. 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 wouldn't begin to know how to use expect for this function. The down and dirty is that I need to create a connection that can stay up for 24hours and log everything that comes across to the machine that is initiating the connection. This also has to be done through cron since the connection...
  3. 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?
  4. 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...
  5. 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...
  6. fsanchez13

    Question regarding /usr/bin/date

    Thanks vgersh....
  7. fsanchez13

    Question regarding /usr/bin/date

    Is there a way to do the date command and have it show yesterdays date?
  8. 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...
  9. 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}...
  10. 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...
  11. fsanchez13

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

    pmurray99.. Thank you very much this works PERFECT!
  12. 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...
  13. fsanchez13

    Is there a scriptiong answer to this question

    Ok... I made the following changes to the shell version and it works up till I get to the lines in red. Or at least this is the line(s) I added and then it stopped all other added lines work perfect up till I added this one. I get the following error: testscript[52]: 00:29:420: syntax error...
  14. fsanchez13

    Is there a scriptiong answer to this question

    Ok, I messed up by not puting an acurate description of my data... The actual data is 19 columns not inlcuding the time stamp. after the time stamp the is 2 tabs and 11 spaces. I don't know if this matters. the actual header I add in later. Sorry for not descibing it better at first.
  15. fsanchez13

    Is there a scriptiong answer to this question

    I am having a problem with the shell version. My text file has time up to 22:39:42 and 22:59:42 and the script is only showing up to 21:00:00
  16. 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...
  17. fsanchez13

    Another problem..Please help..

    I tried the dos2unix and it works great. Thank you very much
  18. fsanchez13

    Another problem..Please help..

    Thanks Hemo but the problem is this file is HUGE!! I only cut a small tid bit to show as well as when I cat the file it drops the Time Stamp that I need
  19. 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...
  20. fsanchez13

    Need help deleting a column of data...

    Is there a way to look at the first number and if that number is lets say 56 then print that line? also I would need the time stamp to be on the line it prints 22:30:30 50 25 37 45 50 51 22 99 66 83 52 45 67 23 50 53 123 12 123 445 22:30:30 56 23...

Part and Inventory Search

Back
Top