LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   When running a script I get a box asking "Run or display ?" I want it to just run (https://www.linuxquestions.org/questions/linux-newbie-8/when-running-a-script-i-get-a-box-asking-run-or-display-i-want-it-to-just-run-160096/)

aaronruss 03-20-2004 01:04 AM

When running a script I get a box asking "Run or display ?" I want it to just run
 
When running a script I get a box asking "Run or display ?" I want it to just run.

What I am trying to do is make a script to mount my floppy drive so I can get it done quick.
The script works but when I click on it I am asked if I want to run it or display it.

How do I make the run or display box not come up and the script just run?

There may be a better way to mount a floppy. Please let me know but even if there is I would still like to know how to make this box not come up.

OS = fedora core 1
Gnome

tvn 03-20-2004 01:08 AM

how about just $mount /floppy if you have a line like
/dev/fd0 /floppy auto user,noauto 0 0
in /etc/fstab

aaronruss 03-21-2004 04:00 PM

Thanks, The script works fine but what about the popup box when I run the script from with in gnome? It pops up and askes if I want to run the script or view it as a text file.

My Ideal is to have an icon on my desktop to mount the floppy and unmount. so all any one has to do is click the icon to get the floppy drive to work.

The popup boxs takes away form the simple idea. Is there a way to turn off the popup on that file?

aaronruss 03-22-2004 12:42 AM

I figured out some thing pretty cool about mounting a floppy.
I did not really need a script after all. What I come up with is to right click the desktop and make a launcher. By putting the command mount /mnt/floppy in the command filed and saving it on the desktop its like a short cut. Just click the mount floppy icon ( that is what I named it. ) and the floppy is mounted and a floppy Icon appears on the desktop. When I want to Unmount the floppy I just right click the floppy icon and click eject. the floppy is unmounted and that is mount maid easy.

I wanted this mount icon on the desktop because I have set linux up in a school for the students And we all know that some people will not give things a chance unless its real easy like point and click easy. Thanks For all your help.

I have solved my problem but would steal like to know the answer for my root question.

how do I keep the pop up box from displaying and have a script run with out any questions before it runs?

aaronruss 05-28-2004 12:03 AM

I have the answer to my own question. I just happened to run across it when searching for some thing ease.

Here is how to keep the box from poping up and asking if you want to display or run.

go to File Management Preferences and in the middle of the page you can select to ask each time, display as text or just run.


All times are GMT -5. The time now is 01:43 PM.