I am writing a perl/CGI script that creates a form to get some infomation from the user, one such item is a directory name. I used 'fielfield' which creates a
ba browse button but it can only access the directory in the users machine but I want the list of files in the server. The user will not be accessing any of the files directly but has only to provide a directory which contains some specific files. Ganapathy Quoting Nikola Janceski <[EMAIL PROTECTED]>: > first off.. I wouldn't be using 'ls' that has gotten me into trouble > especially when people have ls aliased to 'ls -ltr' > use opendir(), readdir() and closedir(). > > second I am sure that there is a widget or code somewhere that someone > wrote > that does what you want. Just look for it, (I don't know where because > I > haven't been doing much Tk in a while). > > Is this the Tk module you are using or some other gui module? > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, June 27, 2002 3:06 PM > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] > > Subject: File selection dialog > > > > > > The filefield allows for me to select a file or directory > > from the users machine > > but I wanted to see a list of files and directories in the server. > > > > I thought I could use the 'ls' command to get a list of files > > and put it in a > > scrolling_list or pop_menu but I do not know how to keep it > > going,i.e. if the > > user clicks on a directory then I have to 'ls directory-name' > > and then put > > those contents in the scroll_list . How would I do that ? > > Ganapathy > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > ---------------------------------------------------------------------------- > -------------------- > The views and opinions expressed in this email message are the > sender's > own, and do not necessarily represent the views and opinions of Summit > Systems Inc. > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]