03-11-2009
It's only a guess, but the error is reporting in rename...are you trying to retrieve the same file multiple times as you're testing? FTP will typically rename existing files of the same name by appending underscores - maybe it's this that's failing.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Still a Beginner here ..
Does anyone no how to get the IP address of the machine thats logged in (bearing in mind there will be others logged in) while they are logged in to the Unix server and pass this as a variable to a shell script so as I can FTP files to that machine via a shell script, at... (2 Replies)
Discussion started by: Gerry405
2 Replies
2. Shell Programming and Scripting
Hi
I have a question.
In the FTP script if we are passing all the required value like Hostname, username, password, Action(put or get), Filename, & mode(ascii or binary) through parameters then we have to pass these in the exact orders in which they are taken like if we defined Username=$2... (2 Replies)
Discussion started by: sourabhshakya
2 Replies
3. Shell Programming and Scripting
Hello,
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies
4. Shell Programming and Scripting
I have the following ftp script to get files from a remote location.
However, on running the script I find that I am not even able to connect to ftp server.
I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP.
IP used here is a dummy IP.
What can go... (3 Replies)
Discussion started by: gram77
3 Replies
5. Shell Programming and Scripting
how to pass value through FTP.Below the script in k-shell
echo "Enter the month/day"
read value
ftp -v -n ddcappip031.tu.com << "EOF"
user amit jason
prompt
cd /ednpdtu7/u01/pipe/Incoming/CurrentCollector/MeterReads/backupfiles
mget CurrentCollectorMeterReadBackup2008'$value'.tar.gz... (13 Replies)
Discussion started by: ali560045
13 Replies
6. Shell Programming and Scripting
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
Discussion started by: varu0612
4 Replies
7. Shell Programming and Scripting
Is there any way to include a directory name before the filename
in the ftp session? Here is the script.
DIRECTORY=`cat directory.txt|sed '/^$/d'`
(
exec 4>&1
ftp -n>&4 2>&4|&
print -p open $host
print -p user $user $password
print -p binary
for D1 in... (0 Replies)
Discussion started by: ranjanp
0 Replies
8. Shell Programming and Scripting
i am passing input parameter 'one_two' to the script , the script output should display the result as below
one_1two
one_2two
one_3two
if
then
echo " Usage : <$0> <DATABASE> "
exit 0
else
for DB in 1 2 3
do
DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}`
done
fi (5 Replies)
Discussion started by: only4satish
5 Replies
9. Shell Programming and Scripting
friends
How can I pass the FTP parameter to the machine the user and password
ip=192.168.80.15
user=FidenFtp
pass=Ftp01Fiden
ftp -n ip user pass
that does not work for me (4 Replies)
Discussion started by: tricampeon81
4 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I have researched and tried many way to pass OUT parameter to be stored in variable in KSH Script.Still not success, please help.
Here is my Store Procedure.
create procedure testout3(v_in varchar2,v_out OUT integer)
as
begin
v_out := 1;
end;
Here is my testvout.ksh
#!/bin/ksh... (1 Reply)
Discussion started by: palita2601
1 Replies
LEARN ABOUT DEBIAN
lltag_config
lltag_config(5) File Formats Manual lltag_config(5)
NAME
config - Configuration file for lltag
DESCRIPTION
The following options may be stored in /etc/lltag/config or the user's $HOME/.lltag/config, or in any file passed with --config.
Such a configuration file may also be generated with --gencfg.
Obtaining tags
format = "string"
Add a user-defined format [-R]. Might be used multiple times. Default is to guess if no user-defined formats and no default field
values are given.
guess = <0/1>
Try to guess if user-defined formats do not match [-G]. Default is 0 (disabled) when no user-defined formats and no explicit values
are given.
tag = <TAG=value>
Add an explicit tag [--tag]. Might be used multiple times.
Tweaking filename parsing
no_path = <0/1>
Do not use file path when matching filename [-p]. Default is 0 (disabled).
spaces = <0/1>
Allow no or multiple spaces [--spaces]. Default is 0 (disabled).
Cleaning obtained tags
edit = <0/1>
Edit tags immediately [--edit]. Default is 0 (disabled).
maj = <0/1>
Upcase first letters of words in tags [--maj]. Default is 0 (disabled).
regexp = "s/from/to/"
Replace from with to in all tags. title,number:s/from/to/ replaces in title and number tags only. Might be used multiple times
[--regexp]. Default is to not apply any regexp.
sep = "string"
Replace |-separated strings with space in tags. Default is to not replace any separator.
Configuration of tag application
type = <mp3|ogg|flac|none>
Force mp3, ogg of flac instead of by-extension detection [--mp3, --ogg and --flac]. Default is none.
clear_tags = <0/1>
Clear all tags of audio files. [--clear]. Default is 0 (disabled).
append_tags = <0/1>
Append tags only instead of replacing old ones. [--append]. Default is 0 (disabled).
no_tagging = <0/1>
Do not actually tag files [--no-tagging]. Default is 0 (disabled).
preserve_time = <0/1>
Preserve file modification time during tagging [--preserve-time]. Default is 0 (disabled).
Renaming
rename_format = "string"
Rename file according to format [--rename]. Default is to not rename.
rename_min = <0/1>
Lowcase tags before renaming [--rename-min]. Default is 0 (disabled).
rename_regexp = "s/from/to/"
Replace from with to in all tags before renaming. title,number:s/from/to/ replaces in title and number tags only. Might be used
multiple times [--rename-regexp]. Default is to not apply any regexp.
rename_sep = "string"
Replace spaces with a string in tags before renaming [--rename-sep]. Default is to not replace any separator.
rename_slash = "string"
Replace slashes with a string in tags before renaming [--rename-slash]. Default is to replace with a dash.
rename_ext = <0/1>
Assume the rename format provides an extension [--rename-ext]. Default is 0 (disabled).
Miscellaneous
dry_run = <0/1>
Do nothing but show what would have been done [--dry-run]. Default is 0 (disabled).
yes = <0/1>
Tag without asking for confirmation when guessing and rename without asking for confirmation [--yes]. Default is 0 (disabled).
ask = <0/1>
Always ask for confirmation before tagging [--ask]. Default is 0 (disabled).
recursive = <0/1>
Recursively traverse all given subdirectories [-R]. Default is 0 (disabled).
verbose = <integer>
Message verbosity level [-v and -q]. Default is 0 (only important messages). Other possible values are 1 (show usage information
when a menu is displayed for the first time) and 2 (always show usage information before a menu appears).
CDDB configuration
cddb_server_name = hostname
Change the CDDB server name. Default is www.freedb.org.
cddb_server_port = <port>
Change the CDDB server port. Default is 80 (HTTP).
SEE ALSO
lltag(1)
The config template file provided within the documentation directory.
AUTHOR
Brice Goglin
NOVEMBER 2006 lltag_config(5)