What is the syntax for an ftp that is appending to the target file? I understand to use the append command, but how do you tell it which source file to append to which target file.
ftpEngine() {
ftp -inv ${FTP_SERVER} << EOF_FTP >> ${FTP_LOG}
user ${FTP_USER} ${FTP_PSWD}
cd ${FTP_DIR1}... (1 Reply)
I have searched several thread and not found my solution, so I am posting a new qustion.
I have a very simple script on an AIX server that FTPs 2 files to a MS FTP server. These 2 files are created on the AIX server every hour, with a static name.
I need to FTP the files to the MS server, but... (1 Reply)
Hello kind programmers :)
I am a newbie and running into an error "line 28: syntax error: unexpected end of file" on the script shown below. Any help would be greatly appreciated. Thanks!
#! /bin/bash
if ($#argv <3) then
echo 'Usage get_modis_snow '
echo 'ftp script for MYD10A2... (2 Replies)
Hello,
I'm trying to make a bash script that send me e-mail if there is any new file in my ftp folder.
cat inotify.sh
#!/bin/sh
/usr/bin/inotifywait -e create \
-mrq /home/mrowcp | while read line; do
echo -n "$line " >> /var/log/inotify.log
echo `date | cut -d " " -f1-4` >>... (3 Replies)
I have a bash script that is running a mysql query and creating a csv file with a time stamp. It then uploads that to a ftp server. Everything works great when I manually run it. But then I have a cron job set to run every monday, wednesday and friday at 5am est. When the cron job runs, it... (7 Replies)
Hi Team,
i have a web ui where user will be passing values and the output will be saved to a file say test with the following contents .
These below mentioned values will change according to the user_input
Just gave here one example
Contents of file test is given below
Gateway... (7 Replies)
Hello,
Can you please if the bellow is the proper way of appending a variable to the stderr:
The easiest way to test this,I was able to imagine, was by touching 5 files and afterwards looping trough to the results:
-rw-r--r-- 1 ab owner 0 Sep 14 13:45 file1
-rw-r--r-- 1 ab owner 0 Sep... (7 Replies)
The bash stores each uniqueid in an array and then passes them to %q to get the unique path. That seems to work what I am having trouble with is renaming each .png with the unique value in %q. I thought it was working but upon closer inspection, a .png file is being sent to scp.... but only 1 and... (21 Replies)
Discussion started by: cmccabe
21 Replies
LEARN ABOUT DEBIAN
dpm-register
DPM-REGISTER(1) DPM Administrator Commands DPM-REGISTER(1)NAME
dpm-register - register external files in DPNS
SYNOPSIS
dpm-register --filesize filesize [ --user owner_user ] [ --group owner_group ] [ --mode filemode ] --pfn pfn --server hostname [ --st sta-
tus ] [ --help ] filename
DESCRIPTION
dpm-register registers a given filename with the specified permissions into DPNS:
- create the file metadata entry in DPNS (dpns_creat)
- set the ownership (dpns_chown) to owner_user : owner_group (by default the requester's DN and group)
- set the filemode (dpns_chmod) to filemode
- set the size of the file (dpns_setfsize) to filesize
- add the replica entry (dpns_addreplicax) setting
* sfn = pfn
* status to status ('O' for Online, 'N' for Nearline)
* f_type = 'P' (Permanent)
* r_type = 'P' (Primary)
EXAMPLE
dpm-register --filesize 525424 --server `hostname --fqdn`
--group biomed --pfn dicom:///1/2/3
/dpm/cern.ch/home/biomed/mdm/1/2/3
EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed.
SEE ALSO dpns_creat(3), dpns_chown(3), dpns_chmod(3), dpns_setfsize(3), dpns_addreplicax(3)LCG $Date: 2008/01/07 10:38:38 $ DPM-REGISTER(1)