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:
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").code:#!/bin/bash echo "hello wolrd" > files.txt
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
Post a Comment