I am trying to do scp using the following script:
I have a config file. The content of the file is given below:
Output
scp -p /builds/20120220/Integration/hpux-hppa/{data.cab,agent.xml} esm2@10.216.123.456:/builds/gc/hp/hpux/parisc
/builds/20120220/Integration/hpux-hppa/{data.cab,agent.xml}: No such file or directory
However, the given files very much exist in the mentioned source location. Also, if the run the same command on the command line, it works without any issue.
I think, this portion in the config file must be the problem area: {data.cab,agent.xml}
I tried escaping, quoting in different ways that i could think of but couldn't get it working
Any help?
Thanks,
Gaurav
---------- Post updated at 07:05 PM ---------- Previous update was at 12:59 PM ----------
I got the solution. It was behaving that way because the variable (src) was just reading the string from the config file. It wasn't expanding the content present within curly braces.
Morning all, I was running some deployment scripts on Friday night that kept failing because it prompted for a password for a user I was already sudo'd in as when trying to scp a file onto itself.
e.g.
on server 51.123.123.123 as sudo dlam
typing: scp testfile dlam@51.123.123.123:/tmp ... (5 Replies)
Hi,
I am trying to copy a whole directory from my home /RUN1 to the external directory jorgensen@hal.oerc.ox.ac.uk:/home/compchem/jorgensen/simulations
The command I have used is:
scp -r jorgensen@hal.oerc.ox.ac.uk:/home/compchem/jorgensen/simulations
The error message I get is:
... (5 Replies)
Hi,
I am facing issue while using scp. Source & target machines are Linux & HP-UX respectively.
On target machine, if I fire the following command, I get error:
Now if I try scp on another file, which is on the same source machine, it works fine.
All directories and subdirectories... (2 Replies)
Hello forum, I’m trying to get someone else’s log rotation & sync script working. The ksh script is sending daily compressed log files to a Windows RSA envision server. The name of the directory is
“CA SITEMINDER_<IP address of the sending server>”. The servers we are sending from are a mix of... (3 Replies)
I need to copy all files and directories with scp, but seems I am missing something?
/usr/bin/scp -p /custscripts/* rmprod2:/custscripts
doesn't copy directories and files under them.
Please advise. (1 Reply)
Hi,
After executing load_data.sh script , it completes the steps in script but give following error.Please let me know how to fix it.
./load_data.sh: ' missing
./load_data.sh: 0: not found
for i in 1 2 3
do
###some processing####
DLOG=$( eval echo \${TXPCY_${i}_DATA_FILE_LOG} )... (4 Replies)
Hi,
I am getting below error in Solaris 10 SPARC when trying to issue a search on /var/tmp partition
Below is the query
/bin/find /var/tmp/ -type f -atime +1
Below is the result
/bin/find: stat() error <File> : No such file or directory (28 Replies)
Hi! I just recently started messing around with Unix, but I've come upon one problem multiple times. Whenever I try to run a shell script, for example;
#! /bin/bash
#--------------------------------------
# example1
#--------------------------------------
echo "Hello, World!"
I... (5 Replies)
I am new to shell scripting so I assume there is something basic I am missing but I have not been able to figure it out. When I run the following code from a script it can't find the paths to the directory or files. I can literally cut and paste the commands into terminal and they work fine. Why... (2 Replies)
Discussion started by: TryAgain12
2 Replies
LEARN ABOUT DEBIAN
pocketpc-cab
POCKETPC-CAB(1) User Commands POCKETPC-CAB(1)NAME
pocketpc-cab - build an installable Pocket PC cabinet file
SYNOPSIS
pocketpc-cab [OPTION]... INPUTFILE CABINET
DESCRIPTION
Read the INPUTFILE, which is a list of filenames and destination directories, and create CABINET, a cabinet file, that will install those
files into the specified directories.
OPTIONS -p, --provider=PROVIDER
set the provider name
-a, --application=APPLICATION
set the application name
-s, --source=SOURCE
set the source directory
-d, --dest=DEST
set the destination directory
-v, --verbose
display verbose output
--help
display a brief help message
--man
display the full documentation
EXAMPLES
$ cat > foobar.files <<EOF
foobar.exe /bin
foobar.dll /windows
EOF
$ pocketpc-cab -p Fooware -a FooBar foobar.files foobar.cab
AUTHOR
Written by Shaun Jackman.
REPORTING BUGS
Report bugs to Shaun Jackman <sjackman@gmail.com>
COPYRIGHT
Copyright 2006 Shaun Jackman
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO lcab(1)
create cabinet archives
/usr/share/doc/pocketpc-cab/wince_cab_format.html
Windows CE installation cabinet file format
perl v5.8.4 2004-09-17 POCKETPC-CAB(1)