Hi,

On 03/19/2010 05:16 PM, narendra sisodiya wrote:
I have made some custom shell script to process certain format. for example
converting .mp3 to .ogg Or processng .ttt files(custom extension zip file)
with shell script. But the problem is I have to go command line and give
filename as argument. is there anyway I can make rightclick on files and
openwith customshell script where filename automatically comes as argument !

Sure. If you are using gnome+nautilus, simply right click the file name->Open with-> Other application-> Use a custom command.

You may choose to directly call your script directly (which *i think* would result in the script being called in the background) or launch it within a terminal. Most terminals support launching a command automatically using a flag (like -e for most xterm variants). So, you can enter something like this for the custom command:

/usr/bin/gnome-terminal -e your_script_name

The file is passed as an additional argument to this command.

If this is a frequent operation you might OTOH, want to write a nautilus script so that the option is shown directly in your right-click menu:
http://www.linux.com/archive/feature/114134

cheers,
- steve

--
random new spiel: http://lonetwin.net/
random old spiel: http://lonetwin.blogspot.com/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to