Hi,
I have this slightly modified FTP code (thanks to this forum)
function gather_FTPDate {
HOST=
USER=
PASSWD=
exec 4>${TEMP_LOG_FILE}
ftp -nv >&4 2>&4 |&
echo $?
if ] then
echo "Unable to connect to FTP server!!!" >> ${LOG_FILE}
return 0
fi
print -p open... (2 Replies)
Hi,
This is part of a ftp script, Can someone please explain what is its functionality or the basic idea behind it and please throw some light on the inv & tee function marked in red.
echo "bye" ) | ftp -inv | tee -a ${DOWNLOAD_LOG} | awk '{ print $0 } /^5.*/ { print "\n\t\t\tFTP session had... (1 Reply)
Hi,
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
I would like to use the result of a query in another query. How do I redirect/add the output to another variable?
$result = odbc_exec($connect, $query);
while ($row = odbc_fetch_array($result)) {
echo $row,"\n";
}
odbc_close($connect);
?>
This will output hostnames:
host1... (0 Replies)
Hi,
I have a requirement as below which needs to be done viz UNIX shell script
(1) I have to connect to an Oracle database
(2) Exexute "SELECT field_status from table 1" query on one of the tables.
(3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Hi,
I was planning to write a FTP script that will FTP files to destination folder. All configuration should be done through a properties files, I have developed two files under /home/499633/scripts) scripts folder, and my main file(ftp_script.sh) should read the properties from the properties... (2 Replies)
Hi,
I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database.
For instance:
USER CITY
--------- ----------
A CITY_A
B CITY_B
C ... (2 Replies)
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Hi,
I have to migrate the scripts from source(HP UX) to destination(Linux) some files. While ftp and downloading the files, the permissions of the files are changing. Is there any option in ftp to get the file in exact permissions.
I believe we can achieve it by using tar, however i am... (3 Replies)
Hi All,
Would like to ask if its possible to perform sql query in another machine and then the output will be sent back to local via ftp.
Machine1 - home server
Machine2 - 2nd server
Scenario: will perform sql query in Machine2 then put it into temp table then the temp table will be... (2 Replies)
Discussion started by: znesotomayor
2 Replies
LEARN ABOUT MOJAVE
cpanplus::internals::utils5.18
CPANPLUS::Internals::Utils(3pm) Perl Programmers Reference Guide CPANPLUS::Internals::Utils(3pm)NAME
CPANPLUS::Internals::Utils - convenience functions for CPANPLUS
SYNOPSIS
my $bool = $cb->_mkdir( dir => 'blah' );
my $bool = $cb->_chdir( dir => 'blah' );
my $bool = $cb->_rmdir( dir => 'blah' );
my $bool = $cb->_move( from => '/some/file', to => '/other/file' );
my $bool = $cb->_move( from => '/some/dir', to => '/other/dir' );
my $cont = $cb->_get_file_contents( file => '/path/to/file' );
my $version = $cb->_perl_version( perl => $^X );
DESCRIPTION
"CPANPLUS::Internals::Utils" holds a few convenience functions for CPANPLUS libraries.
METHODS
$cb->_mkdir( dir => '/some/dir' )
"_mkdir" creates a full path to a directory.
Returns true on success, false on failure.
$cb->_chdir( dir => '/some/dir' )
"_chdir" changes directory to a dir.
Returns true on success, false on failure.
$cb->_rmdir( dir => '/some/dir' );
Removes a directory completely, even if it is non-empty.
Returns true on success, false on failure.
$cb->_perl_version ( perl => 'some/perl/binary' );
"_perl_version" returns the version of a certain perl binary. It does this by actually running a command.
Returns the perl version on success and false on failure.
$cb->_version_to_number( version => $version );
Returns a proper module version, or '0.0' if none was available.
$cb->_whoami
Returns the name of the subroutine you're currently in.
_get_file_contents( file => $file );
Returns the contents of a file
$cb->_move( from => $file|$dir, to => $target );
Moves a file or directory to the target.
Returns true on success, false on failure.
$cb->_copy( from => $file|$dir, to => $target );
Moves a file or directory to the target.
Returns true on success, false on failure.
$cb->_mode_plus_w( file => '/path/to/file' );
Sets the +w bit for the file.
Returns true on success, false on failure.
$uri = $cb->_host_to_uri( scheme => SCHEME, host => HOST, path => PATH );
Turns a CPANPLUS::Config style "host" entry into an URI string.
Returns the uri on success, and false on failure
$cb->_vcmp( VERSION, VERSION );
Normalizes the versions passed and does a '<=>' on them, returning the result.
$cb->_home_dir
Returns the user's homedir, or "cwd" if it could not be found
$path = $cb->_safe_path( path => $path );
Returns a path that's safe to us on Win32 and VMS.
Only cleans up the path on Win32 if the path exists.
On VMS, it encodes dots to _ using "VMS::Filespec::vmsify"
($pkg, $version, $ext) = $cb->_split_package_string( package => PACKAGE_STRING );
Splits the name of a CPAN package string up into its package, version and extension parts.
For example, "Foo-Bar-1.2.tar.gz" would return the following parts:
Package: Foo-Bar
Version: 1.2
Extension: tar.gz
perl v5.18.2 2014-01-06 CPANPLUS::Internals::Utils(3pm)