Jump to content

Long running script... What was the exact command? HELP!


Recommended Posts

Ok, so I'm running a command that is taking days (spbin/hashcat) but i don't remember my exact command because i want to figure out the timespan based on the speed and the amount of patterns generated on spbin. Is there a command that i can do(history seems to only work on the console that i typed it on) to see what my current commmand running is. I know i can see which application is running but i need to know the exact command i typed. Any easy commands or tricks? Any help would be appreciated.

Link to comment
Share on other sites

maybe check your .bash_history file? I'm not sure if the history is written upon execution of the command, or after the completion of it though...


Link to comment
Share on other sites

There are a number of options available assuming a unix based os (linux, BSD, etc.).

You can one of the following to see information about the process (ps lists processes and piping its output through grep reduces the lines down to those you are interested in).

Linux style:    ps -elf | grep spbin BSD style:    ps aux | grep spbin

If you have it running in a terminal/console then you could also press 'CTRL+z' to pause the job and get your prompt back and then search your history for your full command. Once you have paused a job you can use 'fg' to start it again in the foreground or 'bg' to start it in the background (very useful when you realise that you have missed the '&' of the end of a process you meant to start in the background). In this case you will probably want to start it again in the foreground so you don't accidentally close the terminal and terminate the process.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...