Sponsored Content
Full Discussion: Automated FTP task
Special Forums IP Networking Automated FTP task Post 6107 by rwb1959 on Wednesday 29th of August 2001 07:42:31 PM
Old 08-29-2001
vi

Well... I first started using it 17 years ago
and all I can remember is that it was 1000 times
better than "ed" Smilie

You do have emacs as another option but I
don't think you'll like that much better.

If you have X, you should be able to find
a X text editor (perhaps pretty basic).

The thing about vi is that you can pretty much
find it on any **IX system. Anything else and
all bets are off.

I'm sure you could find a substitute on the net
somwhere but I've never looked for one myself.

Sorry about that Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

FTP automated?

If I wanted a machine to put a specific file onto another OS far across the internet via FTP - and I wanted to do it automatically not user intervented, how would I do that? Use the PUT command? The file name and position never changes, it gets overwritten and the system on the other end... (6 Replies)
Discussion started by: n9ninchd
6 Replies

2. UNIX for Advanced & Expert Users

Automated FTP

My requiremnet is to write a FTP script which will ftp a file to a specified ftp url. How can I automate the process usnig the unix cron. (11 Replies)
Discussion started by: shauche
11 Replies

3. UNIX for Dummies Questions & Answers

one time automated ftp session

How can an automated script be setup to run at a later time in the day. cron runs recurring tasks. I am interested in a one time process. I want to back up a number of files whenever I make changes to an application and ftp for backup purposes. The script to automate the zipping of files has... (1 Reply)
Discussion started by: msmkeml
1 Replies

4. IP Networking

Automated ftp for Multiple files

I have seen the script posted yesterday for automated ftp Can we do some thing like ftp ing multiple files in one script Example input.txt has all files names to be ftped input.txt ------ a.tar b.ccp c.perl i need to ftp all the files present in input.txt i tried something like... (0 Replies)
Discussion started by: pbsrinivas
0 Replies

5. Shell Programming and Scripting

automated ftp.

Hi I am trying to delete some specific files ( files other than created today) from the server on a cron basis. I wrote a small script, but I am stuck up in how to delete only specific files. #!/usr/bin/expect -f set IP set timeout -1 spawn ftp $IP expect ): send "username\n"... (10 Replies)
Discussion started by: sangfroid
10 Replies

6. Shell Programming and Scripting

how to devlop automated FTP in UNIX

Automated FTP. hint : use 'atd' to schedule to run a specific script. An Env Variable should be created,say CONF_DIR which points to some dir. @ some time, create a TAR file of this and FTP it to some server. (3 Replies)
Discussion started by: vishalzone2002
3 Replies

7. Shell Programming and Scripting

Automated FTP

I want to do Automated FTP from linux client to LINUX server using a shell script after every one hour. And copies last most updated file from Linux server. OR You can say that whenever files get modified on LINUX server so it also copies on my LINUX client. Linux SERVER path=... (4 Replies)
Discussion started by: wakhan
4 Replies

8. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

9. Shell Programming and Scripting

Automated FTP

Hello,I just know the basics of scripting & I need a script to automate ftp since I use it quite often. I use ftp to transfer different kind of files and everytime the source & the destination directories are different for transferring files, so can anyone help me out on this urgently.. (2 Replies)
Discussion started by: mohit_02mar
2 Replies
Proc::InvokeEditor(3pm) 				User Contributed Perl Documentation				   Proc::InvokeEditor(3pm)

NAME
Proc::InvokeEditor - Perl extension for starting a text editor SYNOPSIS
use Proc::InvokeEditor; my $edited_text = Proc::InvokeEditor->edit($unedited_text); DESCRIPTION
This module provides the ability to supply some text to an external text editor, have it edited by the user, and retrieve the results. The File::Temp module is used to provide secure, safe temporary files, and File::Temp is set to its highest available level of security. This may cause problems on some systems where no secure temporary directory is available. When the editor is started, no subshell is used. Your path will be scanned to find the binary to use for each editor if the string given does not exist as a file, and if a named editor contains whitespace, eg) if you try to use the editor "xemacs -nw", then the string will be split on whitespace and anything after the editor name will be passed as arguments to your editor. A shell is not used but this should cover most simple cases. METHODS
new(editors => [ editor list ], cleanup => 1) This method creates a new Proc::InvokeEditor object. It takes two optional arguments in key => value form: "editors" This should be a reference to an array of possible editor filenames to use. Each editor listed will be tried in turn until a working editor is found. If this argument is not supplied, an internal default list will be used. "cleanup" This specifies whether the temporary file created should be unlinked when the program exits. The default is to unlink the file. "keep_file" This specifies whether to reuse the same temporary file between invocations of "edit" on the same Proc::InvokeEditor object. The default is to use a new file each time. editors() This method gets or sets the list of editors to use. If no argument is supplied, it returns the current value from the object, if an argument is supplied, it changes the value and returns the new value. The argument should be a reference to a list of text editor filenames. editors_env($arrayref) Takes a reference to an array of %ENV keys to use as possible editors. Each $ENV{$key} value is only used if that key exits in %ENV and the value is defined. The new values are prepended to the currently stored list of editors to use. editors_prepend($arrayref) Takes a reference to an array of editors to use, and prepends them to the currently stored list. cleanup() This method gets or sets whether to cleanup temporary files after the program exits. If no argument is supplied, it returns the current value from the object. If an argument is supplied, it changes the value and returns the new object. The argument should be any true or false value. keep_file() This method gets or sets whether to reuse temporary files. If no argument is supplied, it returns the current value from the object. If an argument is supplied, it changes the value and returns the new object. The argument should be any true or false value. first_usable() This method can be called either as a class method, in which it returns the first usable editor of the default list of editors, or as an object method, in which case it returns the first usable editor of the currently configured list. The return is a reference to an array, the first element of which is a filename, and the other elements of which are appropriate arguments to the the command. If this method can not find any usable editor, it will die. edit($unedited_text) This can be called as either a class method or an object method. When called as a class method, it starts an external text editor in the text supplied, and returns the result to you. The text to edit can be supplied either as a scalar, in which case it will be treated as a simple string, or as a reference to an array, in which case it will be treated as an array of lines. Example use of this form is as follows: my $result = Proc::InvokeEditor->edit($string); my @lines = Proc::InvokeEditor->edit(@unedited_lines); my @lines = Proc::InvokeEditor->edit($string); When called as an object method, it behaves identically, but uses configuration parameters from the object: my $editor = new Proc::InvokeEditor(editors => [ '/usr/bin/emacs' ]); $editor->cleanup(0); my $result = $editor->edit($string); A optional second argument is available $suff - example usage: my $reuslt = Proc::InvokeEditor->edit($string, '.xml'); This specifies a filename suffix to be used when the editor is launched - this can be useful if the data in the file is of a particular type and you want to trigger an editor's syntax highlighting mode. TODO
o Write a test suite. AUTHOR
Michael Stevens <mstevens@etla.org>. Also incorporating suggestions and feedback from Leon Brocard and Phil Pennock. Patches supplied by Tim Booth. SEE ALSO
perl. perl v5.10.1 2011-04-25 Proc::InvokeEditor(3pm)
All times are GMT -4. The time now is 07:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy