[TriLUG] scripting question

Chris Bullock cgbullock at yahoo.com
Thu Mar 17 16:39:13 EST 2005


sorry using kshell not c shell and when i run the script I get "logout" is
my scripts name.
coping history to myhistory
./logout[3]: fc: no history (yet)

--- Chris Bullock <cgbullock at yahoo.com> wrote:
> I am trying to learn BSD and I really hate that it does not save my
> history after I log out.  So I have tried to write a script that saves
> my
> history and puts the file in my home dir. This is the script, I am using
> the c shell.
> ----begin script---
> #!/bin/csh
> echo "coping history to myhistory"
> history >> shhistory
> exit
> ----end script---
> 
> when i run the script i get the "coping history to myhistory" but
> nothing
> else.  only way i can get it to work is run history >> shhistory
> 
> I know this is a simple question but I can not figure this one out.
> thanks
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> -- 
> TriLUG mailing list        :
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc
> 


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 



More information about the TriLUG mailing list