Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    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

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    14

    Alrighty then

    Quote Originally Posted by smolloy View Post
    It depends on what windows manager (plus associated software) you have installed. On my Ubuntu Gnome system I do this,
    Code:
    gthumb picturename.jpg
    Thanks. That's where I was getting confused. I just use default Gnome in Ubuntu so I will give it a try.

    Cheers,

    Paul

  4. #4
    Just 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..

  5. #5
    Just Joined!
    Join Date
    Sep 2007
    Posts
    14
    Ok, I give up.

    Paul

  6. #6
    Just 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???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...