09-05-2008
I think <*sorts> is getting globbed locally. Try just putting it in single quotes; you don't want it to be evaluated at all, just sent to the remote server.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am attempting to automate an ftp session in PERL by emulating the user and sending commands to ftp, but I am getting unexpected and unwanted results. Here is a portion code that illustrates the method I am attempting (this was just a shot in the dark):
system("(
echo open server
sleep 1... (2 Replies)
Discussion started by: murdaugh
2 Replies
2. Shell Programming and Scripting
Hi all,
I am trying to download a build from an ftp server.
My problem is that my build contains sub folders and files within the sub folders.
I can ftp a single file at a time, but it will be difficult to specify all the paths and download individula files.
My build structure is:
... (2 Replies)
Discussion started by: gurukottur
2 Replies
3. Shell Programming and Scripting
My situations is I cannot use NET::ftp. So I need to have a way to automate ftp. I know how to do it in ksh:
#!/usr/bin/ksh
ftp -i -v -n $host_name <<_FTP >> $log_file 2>&1
user $user_name
lcd $local_dir
cd $remote_dir
put $file_name
bye
_FTP
But how can I do it in perl?
Note:... (6 Replies)
Discussion started by: egyfan
6 Replies
4. Shell Programming and Scripting
I am trying to execute a script in another server, i used Net::Ftp module
How to execute unix command in another server by using Net::Ftp module..
#!/usr/bin.perl
### Perl script to
$ftp->login($user_name,'password')
or die "Cannot login ", $ftp->message;... (2 Replies)
Discussion started by: pritish.sas
2 Replies
5. Shell Programming and Scripting
this script should search directories read,,search for file for daily reports. you must provide the beginning day, ending day and month.
this script will pull files for days and month specified and Ftp them to another server.
Thanks for any help you provide (2 Replies)
Discussion started by: lemseffert
2 Replies
6. Shell Programming and Scripting
Hi Experts,
I have this requirement to list dirs and files of an FTP server on regular basis.
I was able to do it by following script:
$ftpobj = Net::FTP -> new ("$ftpsrv") || die "Cannot connect to FTP $ftpsrv";
$ftpobj -> login("user","passwd");
$ftpobj -> cwd ("/root_dir");
@rootdir... (1 Reply)
Discussion started by: mtomar
1 Replies
7. Shell Programming and Scripting
Hi,
I have three files in this /home/mani/ location. I would like to ftp to another server.
could you please give perl for that requirement.
Thanks,
Mani (10 Replies)
Discussion started by: Mani_apr08
10 Replies
8. HP-UX
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)
Discussion started by: krsnadasa
2 Replies
9. Shell Programming and Scripting
Hi All
I am stuck with a problem and i want your help,
I have two directories dir1 and dir2
The files present in dir1 is a1,a2 a3 a4
What i want to is to FTP the files present in the dir1 to dir2 (with .txt extension at the end.) with the help of the Perl.
The output expected is
The... (12 Replies)
Discussion started by: parthmittal2007
12 Replies
10. Shell Programming and Scripting
i want to upload two different files in to two different directories(path) on ftp server.but i am able to ftping only one at a time :(.. not both simultaneously.
here i have connectd the ftp and use the binary mode to transfer the files
$ftp = Net::FTP->new($ftphost, Debug => 0)
or... (2 Replies)
Discussion started by: aarts
2 Replies
LEARN ABOUT DEBIAN
git-http-push
GIT-HTTP-PUSH(1) Git Manual GIT-HTTP-PUSH(1)
NAME
git-http-push - Push objects over HTTP/DAV to another repository
SYNOPSIS
git http-push [--all] [--dry-run] [--force] [--verbose] <url> <ref> [<ref>...]
DESCRIPTION
Sends missing objects to remote repository, and updates the remote branch.
NOTE: This command is temporarily disabled if your libcurl is older than 7.16, as the combination has been reported not to work and
sometimes corrupts repository.
OPTIONS
--all
Do not assume that the remote repository is complete in its current state, and verify all objects in the entire local ref's history
exist in the remote repository.
--force
Usually, the command refuses to update a remote ref that is not an ancestor of the local ref used to overwrite it. This flag disables
the check. What this means is that the remote repository can lose commits; use it with care.
--dry-run
Do everything except actually send the updates.
--verbose
Report the list of objects being walked locally and the list of objects successfully sent to the remote repository.
-d, -D
Remove <ref> from remote repository. The specified branch cannot be the remote HEAD. If -d is specified the following other conditions
must also be met:
o Remote HEAD must resolve to an object that exists locally
o Specified branch resolves to an object that exists locally
o Specified branch is an ancestor of the remote HEAD
<ref>...
The remote refs to update.
SPECIFYING THE REFS
A <ref> specification can be either a single pattern, or a pair of such patterns separated by a colon ":" (this means that a ref name
cannot have a colon in it). A single pattern <name> is just a shorthand for <name>:<name>.
Each pattern pair consists of the source side (before the colon) and the destination side (after the colon). The ref to be pushed is
determined by finding a match that matches the source side, and where it is pushed is determined by using the destination side.
o It is an error if <src> does not match exactly one of the local refs.
o If <dst> does not match any remote ref, either
o it has to start with "refs/"; <dst> is used as the destination literally in this case.
o <src> == <dst> and the ref that matched the <src> must not exist in the set of remote refs; the ref matched <src> locally is used
as the name of the destination.
Without --force, the <src> ref is stored at the remote only if <dst> does not exist, or <dst> is a proper subset (i.e. an ancestor) of
<src>. This check, known as "fast-forward check", is performed in order to avoid accidentally overwriting the remote ref and lose other
peoples' commits from there.
With --force, the fast-forward check is disabled for all refs.
Optionally, a <ref> parameter can be prefixed with a plus + sign to disable the fast-forward check only on that ref.
GIT
Part of the git(1) suite
Git 1.7.10.4 11/24/2012 GIT-HTTP-PUSH(1)