On Tue, 22 Oct 2002 09:34:27 -0400, [EMAIL PROTECTED] (Steveo) wrote: >I have a small dynamic website I wrote in perl. All news and stuff is >entered through a web accessible backend page and the data is written to a >series of flat ascii text files. When I make a mistake in entering data, >or if I want to change most data, I have to shell in and edit it with vi >(no big deal). What I'd like to know is if there are simple web based text >file editors (written in perl) out there that I can integrate into my >website so I can edit these raw files over the web instead. > >I had been thinking of writing a cgi script that would allow you to pick >any one of a predetermined set of data files to pull into a text area box >that could be edited and then returned as a form to over-write the old >version. It seems simple enough to read a text file into a webpage, but >I'm not sure that the I know how to return the edited file to the webserver >in the exact same format as it was retrieved.
There are quite a few of those cgi-commandline scripts out there. Do a google search for "cgi commandline" or "shell cgi". But you can save yourself some time, this is about the nicest one out there. ispsy.cgi http://NISoftware.com/ispy.cgi Beware: these are all security risks, You should rename the cgi to something other than the default, or ideally disable it after you are done. You really should consider keeping a separate ssh connection going, to do your edits in. Is it that hard to have ssh going in an xterm or terminal? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]