Quote:
Originally Posted by Habitual
Try
Code:
ftpls () {
ftp -in <<+
open $IP $PORT
user $user $pwd
cd $dir
ls
bye
+
}
and then
Code:
zOpen=$(zenity --entry); ftpls $zOpen" | zenity --text-info --width 500 --height 400
I'd stay away from 'test', as it may be a reserved word in your shell.
|
Thanks :}
anyway, it seems like a similar approach which I have already tried before with --list value for zenity, e.g.like this
below code will generate quite similar output
My question is if is it possible to use file-selection dialog directly ... the path of the files is identified with additional flag "--filename" which seems to be unable to get its input from function -> it is possible to retrieve the input from variable which i have tested on the local drive but I am unable to paste the function into it and get the output from FTP
Code:
folder () {
ftp -in <<+
open $IP $PORT
user $user $pwd
cd $dir
ls
bye
+
}
folder | zenity --width=100 --height=400 --list --column "Folders"