From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <47AD6AF3.80205@proweb.co.uk> Date: Sat, 9 Feb 2008 08:57:23 +0000 From: mattmobile@proweb.co.uk User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] How to move to rc from sh/bash References: <47AD5DF2.9050401@proweb.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 4d5bb660-ead3-11e9-9d60-3106f5b1d025 I started to list my favourite features (procedures, splitting, pattern matching, case) of rc, but I was just replicating the man page. I like rc because I can use it and understand scripts I haven't written, it is surprise free. I've also recently started making more use of signals. I spawn firefox to grab it's output with inferno via vnc but sometimes the page never finishes loading so I have to kill it something like this : fn sigalrm { kill_firefox_sleep_and_screengrab } sleep 200 && kill -ALRM $pid firefox $url & screengrab_when_appropriate & wait kill -ALRM $pid