Feb 6, 2006 #1 W wxando Newbie level 1 Joined Feb 5, 2006 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,286 Hello everyone I would like to take all the commands i enter in a shell session and save it in a shell script. how can i do this? thank you
Hello everyone I would like to take all the commands i enter in a shell session and save it in a shell script. how can i do this? thank you
Feb 6, 2006 #2 gliss Advanced Member level 2 Joined Apr 22, 2005 Messages 691 Helped 75 Reputation 150 Reaction score 16 Trophy points 1,298 Activity points 5,892 I'm not sure what you're asking but you should be able to copy the commands in your .bash_history file (if you're using bash) into a .sh shell script. Then execute that.
I'm not sure what you're asking but you should be able to copy the commands in your .bash_history file (if you're using bash) into a .sh shell script. Then execute that.
Feb 13, 2006 #3 N nelsonong Newbie level 3 Joined Oct 2, 2005 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,306 history -h > file_name