stdin: is not a tty January 14, 2007
Posted by Wes in Web Tools.add a comment
Do you do scp in a shell script and get the annoying “stdin: is not a tty” message? It’s particularly annoying if you want the scp to run in the background and you get your command prompt back and then a few seconds later see the stdin: is not a tty message on your terminal!
The quick solution is to go into the .bashrc on the shell where you’re secure copy (ing) to, and add this at the top:
if [ $(expr index "$-" i) -eq 0 ]; then
return
fi
BTW, here is the script I use to easily resize and transfer images to a remote server:
ACCOUNT=accountnamehere
NEWSIZE=$1
FILENAME=$2
RESIZEDFILENAME=resized.$FILENAME
`convert -resize ${NEWSIZE}x${NEWSIZE} $FILENAME /tmp/$RESIZEDFILENAME;scp /tmp/$RESIZEDFILENAME $ACCOUNT@yourhostname.com:~/imageuploaddir/$FILENAME;rm /tmp/$RESIZEDFILENAME` &
Note how the resize and scp commands are treated as a single unit that is put in the background so we can have our command prompt back immediately.
A few color tools for web design January 3, 2007
Posted by Wes in Web Tools.add a comment
This wordpress help article contains many color tools for design…
To sample colors from existing websites, I use colorzilla
To sample colors from other media on the screen, like an image in a word processor, Windows users can use the AIColorPicker
To create pleasing color palettes, try the Color Scheme Generator 2