hi,
i am trying to make a script that allows you to choose a file then runs another script with this file as a parameter.
this is my script so far but the script doesn't run with the file.
if i replace $file with the filename it runs fine.
any help is appreciated - including alternative methods which inlcude me having a dialog so i can choose a file.
thanks
daven
i am trying to make a script that allows you to choose a file then runs another script with this file as a parameter.
Code:
#!/bin/bash
file= zenity --file-selection
cd ~/rs/
./download.sh $file
exit
this is my script so far but the script doesn't run with the file.
if i replace $file with the filename it runs fine.
any help is appreciated - including alternative methods which inlcude me having a dialog so i can choose a file.
thanks
daven