LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-20-2004, 01:04 AM   #1
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Rep: Reputation: 15
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
 
Old 03-20-2004, 01:08 AM   #2
tvn
Member
 
Registered: Mar 2004
Posts: 96

Rep: Reputation: 15
how about just $mount /floppy if you have a line like
/dev/fd0 /floppy auto user,noauto 0 0
in /etc/fstab
 
Old 03-21-2004, 04:00 PM   #3
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Original Poster
Rep: Reputation: 15
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?
 
Old 03-22-2004, 12:42 AM   #4
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Original Poster
Rep: Reputation: 15
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?
 
Old 05-28-2004, 12:03 AM   #5
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
run "install" script..how? kirazo Linux - Newbie 5 10-12-2004 07:10 PM
Priority: script to run on boot vs. "service iptables save" iheardrain Linux - General 5 09-30-2004 09:53 PM
remove the "Run or Display?" when I execute a script llee Programming 5 05-05-2003 11:21 AM
remove the "Run or Display?" when I execute a script llee Linux - Software 0 05-02-2003 02:52 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration