X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,fe142cf911d2683e,start X-Google-Attributes: gidf996b,public From: Stefan Alexei Lasiewski Subject: REQ: .sig changer for UNIX Date: 1996/11/09 Message-ID: <560rm3$o94@bug.rahul.net>#1/1 X-Deja-AN: 195452386 distribution: world organization: a2i network nntp-posting-user: gangrel newsgroups: alt.ascii-art Hi All! I'm looking for hints on how to make a .sig changer script for UNIX. I'm working in C and Korn shells, so a script working under either shell can work. Basicly, I'd like the script to change my script every time I log in (Or even better, randomly change every time I post an article/email a message). I haven't found any FAQ's on this... I know this sounds like a job for PERL, and I actually do have the 'sigrandom' PERL program, but I know very little of the language (But I'm learning), and cannot figure out how to get it to work on my system. So, does anyone have any hints suggestions on making a script. Here's the only version I can get to work... any hints or suggegstions would be appreciated. cp $HOME/.sig/sig8 $HOME/.signature cp $HOME/.sig/sig7 $HOME/.sig/sig8 cp $HOME/.sig/sig6 $HOME/.sig/sig7 cp $HOME/.sig/sig5 $HOME/.sig/sig6 cp $HOME/.sig/sig4 $HOME/.sig/sig5 cp $HOME/.sig/sig3 $HOME/.sig/sig4 cp $HOME/.sig/sig2 $HOME/.sig/sig3 cp $HOME/.sig/sig1 $HOME/.sig/sig2 cp $HOME/.signature $HOME/.sig/sig1 Rudementary, but it works. Basically... I have 8 files named sig1-sig8 in a directory named .sig. I want a different file to be copied as $HOME/.signature every time I log in. |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Stefan Lasiewski >>>CONTENTS UNDER PRESSURE<<< | | gangrel@rahul.net >>>DO NOT PUNCTURE<<< | | http://www.rahul.net/gangrel | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Stefan Lasiewski >>>CONTENTS UNDER PRESSURE<<< | | gangrel@rahul.net >>>DO NOT PUNCTURE<<< | | http://www.rahul.net/gangrel |