Hi,
I want to sftp some files to a remote directory. Before transferring files i want to check whether the required folder exists. If so copy the files to that folder, else create the folder and copy the files.
Thanks in adv (1 Reply)
Hi there, I am designing a software rollout script and need to check if a particular file exists on a remote system
something along the lines of
if ; then blah blah
The above doesnt work but you get the general idea....is there a way I can do this on a single line ??
any help would... (2 Replies)
Hi
Does anybody know how I can check if a file exists on a remote machine
i.e. see bellow, this doesn't work by the way and if tried countless variations on this
#!/bin/sh
hostname=server56
if ; then
echo file exists
else
echo file doesn't exist
fi
Any help on this would... (2 Replies)
Hello,
I have a script that uploads a file from local to remote place using ftp. The problem is that, if on remote host there is a file called the same as the one I want to upload, the ftp program overrides that file. But I don't want to override nothing (even if the remote file is older,... (3 Replies)
I am haveing one script haveing one issue with this could any one can reply soon it is very urgent.
:p
if ssh hcp_ftp@$1 'ls '$2/stop.txt' 1>&2 2>/dev/null'; then exit 1;
else
scp -p hcp_ftp@$1:$2/VAT*.dat $3 <<EOF
EOF
cd $3
pwd
echo 'About to find file'
SOURCE_FILE=$(ls -rt VAT*.dat|tail... (2 Replies)
Hi,
When trying to chk if a folder exists on remote server using the below command (got it from other thread in this forum)
"ifvchr@s1.mrix.local '/cygdrive/d/shares/projects\ data\ load/test\ files/$SCPED_FILES$name$code'`];
then
echo "Directory exists";
else
echo "Directory... (0 Replies)
I've seen this question posed a few times with shell scripting, but have not found anything with csh. I am trying to download multiple txt files from a source using wget. These are archived tornado warning files; however, the files only exist if there were tornado warnings issued that day. I'm... (3 Replies)
Hi everyone,
I am trying to figure out a way to ssh to remote server and check if file exists, and if it doesn't I want to leave the script with an exit status of 5.
I have the following that I am attempting to use, but it is not returning anything:
check()
{
ssh ${SOURCE_SERV} "ls -l... (4 Replies)
Dear members, The following expect script connects to remote node and check for the file "authorized_keys" in directory /root/.ssh in remote node. However the result is always found even if the file exist or doesn't exist.
expect {
"$fname" {
send_user "found\n"
}
Any idea what is... (4 Replies)
Hi there,
I am sorry to ask that kind of beginner thing, but all the code I found online didnt work for me.
All I want to do is: Check via SSH if a File exists on my webserver. The SSH login has to be with username and password.
So I would be very thankful if somebody could write the line.... (8 Replies)
Discussion started by: Jens885544
8 Replies
LEARN ABOUT DEBIAN
cfetooldump
CFETOOLDUMP(8) User Contributed Perl Documentation CFETOOLDUMP(8)NAME
cfetooldump - dump the contents of a database in XML format
SYNOPSIS
cfetool dump name [--path|-p directory name] [--file|-f filename] [--daily|-d] [--weekly|-w] [--yearly|-y] [--verbose|-v] [--help|-h]
DESCRIPTION
Prints the contents of the specified database in XML format, with comments for human readability. This format can be read by cfetool
import.
The -d, -w, and -y options specify which databases to include in the dump, and may be combined. If they are all omitted, the default is to
only dump the weekly database.
OPTIONS
--path|-p directory name
Names the directory in which the database specified by name can be found.
--file|-f filename
Names a file to print the XML to. If this option is omitted, the XML will be printed to the standard output stream.
--daily|-d
Include the daily pattern database in the dump.
--weekly|-w
Include the weekly pattern database in the dump.
--yearly|-y
Include the yearly pattern database in the dump.
--verbose|-v
Print details of the command's execution to the standard output stream. When using this argument, it is recommended that you also pro-
vide the -f argument, to avoid sharing the standard output stream.
--help|-h
Print a short help message and then exit.
EXAMPLE
% cfetool dump temperature --path /my/path -f temperature.xml
Prints the following to the file temperature.xml:
<!-- cfetool Database Dump -->
<dump>
<name> temperature </name>
<age> 1 </age> <!-- steps (0.001 weeks) -->
<step> 10 </step> <!-- minutes -->
<!-- consecutive updates -->
<iterations> 1 </iterations>
<!-- last update at Tue Aug 31 10:32:05 2004 -->
<timestamp> 1093973525 </timestamp>
<!-- current weighted average -->
<expect> 7.105000 </expect>
<!-- current variance -->
<var> 38.280217 </var>
<!-- data entries -->
<entry> <timekey> Tue:Hr10:Min30_40 </timekey>
<expect> 10.150000 </expect>
<var> 13.245750 </var>
</entry>
</dump>
AUTHORS
The code and documentation were contributed by Stanford Linear Accelerator Center, a department of Stanford University. This documentation
was written by
Elizabeth Cassell <e_a_c@mailsnare.net> and
Alf Wachsmann <alfw@slac.stanford.edu>
COPYRIGHT AND DISCLAIMER
Copyright 2004 Alf Wachsmann <alfw@slac.stanford.edu> and
Elizabeth Cassell <e_a_c@mailsnare.net>
All rights reserved.
perl v5.8.4 2004-09-21 CFETOOLDUMP(8)