05-21-2009
Thank you
Thanks for all the replies. I ended up learning to edit w/ VI.
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I'm new to UNIX and new to this forum, so forgive my lack of knowledge. I'm new with editing in vi so I FTP scripts to a Windows machine and edit the script in notepad (when I need to do something quickly). Sometimes when I FTP the script back to the UNIX box, strange characters... (4 Replies)
Discussion started by: dgower2
4 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I want to show my output for the script to notepad.Anybody know what is the command to do this...
Thanks.. (7 Replies)
Discussion started by: mastercar
7 Replies
3. Solaris
i have a file which i open in wordpad shows proper formated o/p column wise .. but same file which is txt file when i do cat in solaris shows grabbled o/p is there any way i can see the output same as wordpad or txt pad ? even in solaris ?
Following is the o/o when i do a #cat file.txt | more... (8 Replies)
Discussion started by: fugitive
8 Replies
4. UNIX for Dummies Questions & Answers
Hi,
just quick question, I currently type up my scripts in Notepad++ and then copy them into my file (in VI).
However, i've noticed that all the lines get messed up and it becomes difficult to read the script.
so i've to spend time then using '\' at the end of lines etc and re-formatting... (7 Replies)
Discussion started by: horhif
7 Replies
5. Windows & DOS: Issues & Discussions
I connect to my office server using ftp option in notepad++
I am not able to open directory's with out setting my clear case view in the notepad++
Hence pls help me in setting the view in notepad++ so that it can read all the files and directorys (6 Replies)
Discussion started by: Syed Imran
6 Replies
LEARN ABOUT PHP
ftp_nb_put
FTP_NB_PUT(3) 1 FTP_NB_PUT(3)
ftp_nb_put - Stores a file on the FTP server (non-blocking)
SYNOPSIS
int ftp_nb_put (resource $ftp_stream, string $remote_file, string $local_file, int $mode, [int $startpos])
DESCRIPTION
ftp_nb_put(3) stores a local file on the FTP server.
The difference between this function and the ftp_put(3) is that this function uploads the file asynchronously, so your program can perform
other operations while the file is being uploaded.
PARAMETERS
o $ftp_stream
- The link identifier of the FTP connection.
o $remote_file
- The remote file path.
o $local_file
- The local file path.
o $mode
- The transfer mode. Must be either FTP_ASCII or FTP_BINARY.
o $startpos
-The position in the remote file to start uploading to.
RETURN VALUES
Returns FTP_FAILED or FTP_FINISHED or FTP_MOREDATA.
EXAMPLES
Example #1
ftp_nb_put(3) example
<?php
// Initiate the Upload
$ret = ftp_nb_put($my_connection, "test.remote", "test.local", FTP_BINARY);
while ($ret == FTP_MOREDATA) {
// Do whatever you want
echo ".";
// Continue uploading...
$ret = ftp_nb_continue($my_connection);
}
if ($ret != FTP_FINISHED) {
echo "There was an error uploading the file...";
exit(1);
}
?>
Example #2
Resuming an upload with ftp_nb_put(3)
<?php
// Initiate
$ret = ftp_nb_put($my_connection, "test.remote", "test.local",
FTP_BINARY, ftp_size("test.remote"));
// OR: $ret = ftp_nb_put($my_connection, "test.remote", "test.local",
// FTP_BINARY, FTP_AUTORESUME);
while ($ret == FTP_MOREDATA) {
// Do whatever you want
echo ".";
// Continue uploading...
$ret = ftp_nb_continue($my_connection);
}
if ($ret != FTP_FINISHED) {
echo "There was an error uploading the file...";
exit(1);
}
?>
SEE ALSO
ftp_nb_fput(3), ftp_nb_continue(3), ftp_put(3), ftp_fput(3).
PHP Documentation Group FTP_NB_PUT(3)