[dev] [surf] session management

From: Julien Steinhauser <Julien.Steinhauser_AT_orange.fr>
Date: Fri, 2 Oct 2009 13:29:53 +0200

Hello, two scripts for basic session management on surf
 
I assume that you launch surf like that :
surf -x blah >> ~/.surf/id

After a session don't forget to clean your ~/.surf/id

writesession :
 
#!/bin/sh
dir=~/.surf
while read line
do
        url=`xprop -id $line | grep URL | awk '{print $3}' | sed 's/"//g'`
        echo -e $url >> $dir/session
done < $dir/id

launchsession :

#!/bin/sh
dir=~/.surf
while read line
do
        surf -x $line >> $dir/id &
done < $dir/session
Received on Fri Oct 02 2009 - 11:29:53 UTC

This archive was generated by hypermail 2.2.0 : Fri Oct 02 2009 - 11:36:02 UTC