Skip to main content

Thread: open bash scritp from Nautilus (use a custom command?)


hello all,

trying make bash script deal files selected , opened nautilus. simplifying problem created file called "callfromnautilus.sh" next content:

code:
#!/bin/bash echo "hello wolrd" > files.txt
this script expected create file called "files.txt" content hello world in it. make sudo chmod 700 callfromnautilus.sh , file works expected when called either terminal or nautilus (double clicking callfromnautilus , selecting "run in terminal").

open automatically each time double click file extension, instance, *.cft (so start playing nautilus_script_selected_file_paths , on). right-clicked 1 file created, file_1.cft, , selected "open other application". "use custom command" , browsed script callfromnautilus.sh. reason not seem work since file "files.txt" expecting no created each time double click file extension *.cft (not first time, when select option open).

appreciate if tell me doing wrong here.

thank in advance help!

jmgl

are sure working directory set? change script include `cd ~/desktop/`, , see if file created on desktop.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] open bash scritp from Nautilus (use a custom command?)


Ubuntu

Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

2.5.28 to 3.4.1---Download of update package failed - Joomla! Forum - community, help and support

Your host needs to use PHP 5.3.10 or higher to run this vers - Joomla! Forum - community, help and support