LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2006, 11:53 AM   #1
pyyrroo
LQ Newbie
 
Registered: Nov 2006
Location: Small Town, North Carolina, USA
Distribution: Fedora Core 6 32x
Posts: 2

Rep: Reputation: 0
Question Script help..


I've been trying to write a bash script that will automatically mount an ISO.

I want to add it to my open with list for ISO files. So far, this part is fine..
Problem is, I don't know how to grab the file name of the ISO I launched the script with?

Thanks in advance.
 
Old 11-26-2006, 12:02 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Can you post what you have so far?
 
Old 11-26-2006, 12:08 PM   #3
pyyrroo
LQ Newbie
 
Registered: Nov 2006
Location: Small Town, North Carolina, USA
Distribution: Fedora Core 6 32x
Posts: 2

Original Poster
Rep: Reputation: 0
=/

Well.. I got it now.


#!/bin/bash
mount -o loop -t iso9660 $1 /mnt/cd2




I was testing the file name trying to get it to echo... not sure what that didn't work.
Going ahead and mounting it worked though.

Thanks !


[I might eventually get this Linux thing (stupid VB background) ]
 
Old 11-26-2006, 12:12 PM   #4
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Glad you got it working.

Regards,
Fordeck
 
  


Reply



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
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 04:19 AM
Directory listing - Calling shell script from a CGI script seran Programming 6 08-11-2005 11:08 PM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
linux 9 and java script error - premature end of script header sibil Linux - Newbie 0 01-06-2004 04:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration