12-04-2007
I looked at the man page but it didn't really answer my question.
So I did a quick test and the answer is yes - it does.
If the file does not exist append will put it there, just as if you had said put.
Should have done that in the first place, but I was hoping to be lazy and that one of you would know off the top of your guru-smart heads.
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I have a simple script that runs each night and transfers a number of files to a remote server. Before files are transferred existing files on the remote box are deleted. All works OK except the deletion part on the remote box returning no such file or directory. As work around Ihave... (2 Replies)
Discussion started by: tzp2ft
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
I'm attempting to FTP several files using MGET. My problem is that I need to cd to a directory with this naming convention:
YYMMDDHHMM - where the hour and minute is unknown
When I issue cd /ftpdirectory/YYMMDD* from FTP, I receive "No such file or directory
I need a way to get the... (6 Replies)
Discussion started by: kdreaves
6 Replies
3. Shell Programming and Scripting
How do I setup a parameter driven executable script which FTP's a file (input as a parameter) in Unix (AIX) to my desktop (Windows) ?
For example I would ideally like to do this -
Unix Prompt> FtpFetch abc.log
and get this abc.log on my desktop.
Thanks to anyone that can help! I am... (1 Reply)
Discussion started by: kapjag
1 Replies
4. UNIX for Dummies Questions & Answers
I have a .pl script that is grabbing information and creating two different .txt files, I need to append one to the other.
open GARPFILE;
open GARPFILEXX;
cat $gGarpFileXx >> $gGarpFile;
close GARPFILE;
close GARPFILEXX;
but I'm getting this:
Useless use... (1 Reply)
Discussion started by: mr_evans2u
1 Replies
5. UNIX for Dummies Questions & Answers
I'm basically trying to FTP a file to a differnt node, first putting the FTP commmands into a text file and then piping the commands file into the ftp command as follows....
echo "user $USERNAME $PASSWORD" > ftp_cmds
echo "put $SQLOUT /users/$USERNAME/$SQLOUT" >> ftp_cmds
echo "quit" >>... (4 Replies)
Discussion started by: djkane
4 Replies
6. Shell Programming and Scripting
I want to append a decimal number to a string. But I want to restrict the number to only 2 decimal points
for e.g:
my $output = "\n The number is = ";
my $number = 2.3333333;
$output = $output . $number;
But I want the $output as: "The number is = 2.33"; and not 2.3333333
(I do not... (1 Reply)
Discussion started by: the_learner
1 Replies
7. UNIX for Dummies Questions & Answers
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)
Discussion started by: brdholman
1 Replies
8. Shell Programming and Scripting
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)
Discussion started by: sknisely
1 Replies
9. Shell Programming and Scripting
I like to do the following, please help! Thanks a lot
for f in seq(f1 f2 f3 g1 h1 t2)
do
cut -d "+" -f2 $f > $f.nums
paste ? # each loop will attach additional column to the created file $f.nums, how to do this???
done (1 Reply)
Discussion started by: ksgreen
1 Replies
10. Shell Programming and Scripting
I'm working on a bash script to finish uploading a file.
I need a way to get $filesize so that "restart $filesize" will work.
Here is my script:
ftp -n -v <<END_SCRIPT
open ftp.$domain
user $user@$domain $password
size $file
restart $filesize
put $file
quit
END_SCRIPTWayne Sallee... (9 Replies)
Discussion started by: WayneSallee
9 Replies
LEARN ABOUT SUSE
fvwm-themes-com
FVWM-THEMES-COM(1) Fvwm Utility FVWM-THEMES-COM(1)
NAME
fvwm-themes-com - fvwm-themes communication center
SYNOPSIS
fvwm-themes-com [ --help] [ --version] [ --name name ] [ --message message ] [ --lock-and-get ] [ --get-buffer ] [ --clear-buffer ] [
--buffer-name name ] [ --line lineNbr]
DESCRIPTION
This script is not a user script. It is used by Fvwm-Themes for communication between some FvwmScript scripts and some other programs.
Basically, you want to start a programs in the background which support the fvwm-themes-com communication protocol (e.g., fvwm-themes-menu-
app and fvwm-themes-config with the com-mode option can be used as generic examples), then you can use fvwm-themes-com to ask questions or
to give instructions to the background program. The answer are displayed by fvwm-themes-com in the standard out put and can be used by a
FvwmScript script via the GetoutPut instruction. The advantage of using this method is that the background program have to do its main job
only once (e.g., parsing a lot of informations and storing them in some variables) and a script can have very fast answer from the back-
ground program via fvwm-themes-com.
OPTIONS
--help - show the help and exit
--version - show the version and exit
--name name - the name of the communication (e.g., if you start fvwm-themes-menuapp with --com-name pid option you must use menuapp-pid as
name to communicate with it). The pipe used for communication are $FVWM_DATADIR/{.tmp-com-in-name,tmp-com-out-name,tmp-com-lock-name}. The
"buffer" file is $FVWM_USERDIR/.tmp-com-buffer-name
--message - A one line message to be sent to the back program.
--lock-and-get - Wait (a certain "time out") for an answer of the message. Then, the answer is displayed on STDOUT.
--line n - n must be an integer n > 0. In the case of a lock and get message, fvwm-themes-com will out put only the nth line of the answer
of the back program on STDOUT and will copy the complete answer in a "buffer" file. If you use the get-buffer option the nth line of the
buffer is out put on STDOUT.
--get-buffer - Out put the buffer file on STDOUT.
--buffer-name othername - Use an alternative name for the buffer file: $FVWM_USERDIR/.tmp-com-buffer-othername. This is usefull if two pro-
grams use the same background program and both use the buffer.
--clear-buffer - remove the buffer file.
USAGE
Here an example:
In the Script FvwmScript-Menus you first start the background program, here fvwm-themes-menuapp, and you set some variables for an easy use
of fvwm-themes-com:
# found the FvwmScript pid
Set $CMD = {perl -e '$t=getppid; print $t . "
"'}
Set $PID = (GetOutput $CMD 1 -1)
# Run fvwm-themes-menuapp until the end of the script
Do {Exec fvwm-themes-menuapp --com-mode --com-name=menuapp-}$PID{ &}
# to send fvwm-themes-com command
Set $SendMsgAndGet = {fvwm-themes-com --name menuapp-}$PID{ --lock-and-get --message=}
Set $SendMsg = {fvwm-themes-com --name menuapp-}$PID{ --message=}
Set $GetLine = {fvwm-themes-com --name menuapp-}$PID{ --get-buffer --line=}
Then in the Script you can ask fvwm-themes-menuapp for some informations:
# Get the menu list
Set $CMD = $SendMsgAndGet{"menu-items }$MENU{"}
Set $ItemsList = (GetOutput $CMD 1 -1)
ChangeTitle 11 $ItemsList
You can also just send an instruction to fvwm-themes-menuapp:
Set $CMD = $SendMsg{"exit"}
Do {Exec }$CMD
Of course your back program have to support the fvwm-themes-com protocol. See fvwm-themes-menuapp and fvwm-themes-config for examples (com-
mode option). See also FvwmScript-Menus and FvwmScript-ThemesCenter.
AUTHORS
Olivier Chapuis <olivier.chapuis@free.fr>, 5 May 2000.
COPYING
The script is distributed by the same terms as fvwm itself. See GNU General Public License for details.
BUGS
Report bugs to fvwm-themes-devel@lists.sourceforge.net
3rd Berkeley Distribution perl v5.6.0 FVWM-THEMES-COM(1)