3 Replies - 11148 Views - Last Post: 30 December 2012 - 11:28 PM

#1 yaykittyeee  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 59
  • Joined: 16-September 10

hp unix, how to exit tail -f?

Posted 23 August 2012 - 11:18 AM

Hello,

I am looking for the best way to exit a log file after doing tail -f on a sh file in the hp-ux command line. I've googled the problem and so far haven't found a solution.

I know there is a command for it because I've used it before but I can't remember what it was, if anyone has any advice, it would be greatly appreciated

thanks in advance
Is This A Good Question/Topic? 0
  • +

Replies To: hp unix, how to exit tail -f?

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5407
  • View blog
  • Posts: 27,410
  • Joined: 10-May 07

Re: hp unix, how to exit tail -f?

Posted 23 August 2012 - 11:28 AM

I always use control c to bail. I don't think that there is a clean way. You could also open a new terminal window, check for the tail pid (process id) with grep ps aux | grep tail | grep -v grep & then kill that pid with -9 kill -9 ${PID}.
Was This Post Helpful? 1
  • +
  • -

#3 yaykittyeee  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 59
  • Joined: 16-September 10

Re: hp unix, how to exit tail -f?

Posted 23 August 2012 - 11:29 AM

thanks, ctrl+c works
Was This Post Helpful? 0
  • +
  • -

#4 Gorian  Icon User is offline

  • ninja DIC
  • member icon

Reputation: 120
  • View blog
  • Posts: 1,681
  • Joined: 28-June 08

Re: hp unix, how to exit tail -f?

Posted 30 December 2012 - 11:28 PM

FYI, CTRL+C works, but did you try q? In my experience, pressing q works for tail, man, less, and a number of other command line programs similar (I'll double check next time I am at work. Not like I keep HP-UX sitting around at home!). Also, feels for you on using HP-UX >.<
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1