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