Results 1 to 6 of 6
Hi all,
Been a while since I been on here asking how to install an application, now, I am beginning to write scripts but just started yesterday So, my question ...
- 11-02-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 14
Script
Hi all,
Been a while since I been on here asking how to install an application,
now, I am beginning to write scripts but just started yesterday
So, my question is this...
echo -n "what is your favorite color?: "
read guess
while [ "$guess" != "blue" ]; do
echo "No idiot!! You are worthless!! You are a waste of skin! "; read guess
echo "See? You are still a moron!" ; read guess
echo " You are dumb !!!" ; read guess
done
Ok, this works fine, however, how would I insert a command to open a picture in my home directory? Anyone know?
Thanks,
Paul
- 11-02-2007 #2
It depends on what windows manager (plus associated software) you have installed. On my Ubuntu Gnome system I do this,
Code:gthumb picturename.jpg
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
- 11-02-2007 #3Just Joined!
- Join Date
- Sep 2007
- Posts
- 14
- 11-02-2007 #4Just Joined!
- Join Date
- Sep 2007
- Posts
- 14
Ok I it almost works, however, it opens up the whole image viewer with all pics, not just one.
Cheers,
Paul
I still haven't found a way to just open a single pic in the image viewer, but haven't given up yet..
- 11-03-2007 #5Just Joined!
- Join Date
- Sep 2007
- Posts
- 14
Ok, I give up.
Paul
- 11-03-2007 #6Just Joined!
- Join Date
- May 2005
- Location
- India
- Posts
- 2
HI I really bad in Bash Script but then also I want to know is any Script in which I can grep to and from in maillog file of postfix???


Reply With Quote
