Tuesday, June 27, 2006


Single Writer Multiple Readers using Anonymous Pipes

Use the tee command. Here is an example where I use pipes and the linux cut/paste command to implement a windows like "scanning wireless networks available" in linux.

echo "Going to scan nets"
rm -rf *.trace
iwlist $wintf scanning | tee >(grep "ESSID" |cut -d ':' -f 2 > essid.trace ) >(grep "Encryption"|cut -d ':' -f 2 > enc.trace ) | (grep "Quality"|cut -d '=' -f 2 > quality.trace)

paste -d " :" essid.trace enc.trace <(cut -d " " -f 1,3 quality.trace) > table
availnets=`cat table`

selected_net=$($DIALOG --stdout --title "Scanned Networks Available. " --radiolist "Press Cancel to enter your own ESSID

ESSID Encypted? Signal Strength" 18 45 12 $availnets)
case $retval1 in
echo "Input string is $selected_net";;
echo "Cancel pressed.";;
#No problem will prompt for essid later
$DIALOG --no-close --no-buttons --title "Disable Network" --infobox "User Interrupt going to disable the network" 8 32 10

With havin so much content and articles do you ever run into any issues of plagorism or
copyright violation? My site has a lot of unique content I've either created myself or outsourced but it looks like a lot of it is popping it up all over the internet without my permission. Do you know any solutions to help stop content from being stolen? I'd
really appreciate it.

Feel free to visit my weblog - ray ban outlet
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?