02-06-2013
thanks - these little quirks are simply difficult to find via search engine...I appreciate it
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to ftp some files from a certain directory, but i got an invalid command. does anybody know why i got this error?
ftp -v -i -n <<SCRIPT
open servername
user
username password
cd /server/logs
for file in MCWAS*
do
put ${file} /home/test/${file}
done
bye
SCRIPT (2 Replies)
Discussion started by: caesarkim
2 Replies
2. Shell Programming and Scripting
Hi,
I have to ftp to a remote machine.
i have got the Ip, username and password and the file path..
I need to get the file name with out user intervention in my script..
is there any way to do this..
please help
esham (2 Replies)
Discussion started by: esham
2 Replies
3. UNIX for Dummies Questions & Answers
Hi ,,
I am wrting a shell script to ftp a file from remote server but its giving some problem to me.can you help me in debugging this.
#!/usr/bin/ksh
HOST="some ip"
user="user_name"
passwd="password"
ftp -n $HOST >>END_SCRIPT
USER $user
$passwd
binary
prompt
get... (3 Replies)
Discussion started by: namishtiwari
3 Replies
4. Shell Programming and Scripting
Hi,
I need to upload a file via ftp. I have given :
ftp -n $HOST <<END
quote user $USER
quote pass $PASSWD
prompt off
put bus.txt
quit
END
Its throwing a syntax error at "<<" symbol. What should be done for this ?? (2 Replies)
Discussion started by: risshanth
2 Replies
5. Shell Programming and Scripting
Hi All,
I want to make a ftp call using a separate file where the ftp commands will reside.
Please find below the details:
I have 2 files Sample1.sh and Properties
Properties
---------
<username>
<password>
.... other ftp commands
Sample1.sh
----------
ftp -v <servername> <... (1 Reply)
Discussion started by: pickpeters
1 Replies
6. Shell Programming and Scripting
Hi,
What i would like to do is to use a shell script connect to a remote computer and download files from a specific directory. I wrote the following script.
#!/bin/sh
HOST='IP'
USER='yourid'
PASSWD='yourpw'
FILE='*.txt'
REMOTEPATH=/incoming/MSC/
ftp $HOST <<END_SCRIPT
user $USER... (3 Replies)
Discussion started by: chriss_58
3 Replies
7. UNIX for Dummies Questions & Answers
Hi
I am new in UNIX field. I don't know if I am posting in right forum or not. And I have also found out that there are so many posts about ftp shell scripting. I have tried those but actually having some problem.
Well, my script should do the following..... It finds files( the filename ended... (3 Replies)
Discussion started by: abhishek_510
3 Replies
8. Shell Programming and Scripting
#!/usr/bin/ksh
export filename=/grid/PowerCenter/inbound/AT/filelist.txt
export SOURCE_DIR=/grid/PowerCenter/inbound/AT
export ICOMS_FTP_TGT_DIR1=/dw/input/ATU/ICOM_SERV1
export ICOMS_FTP_TGT_DIR2=/dw/input/AT/ICOM_SERV2
export FILE_MASK="ATRPU_RP_ATU"
echo "start"
ftp_data_file()
{
... (15 Replies)
Discussion started by: vsmeruga
15 Replies
9. UNIX for Dummies Questions & Answers
Dear All,
I am using FTP in a script. But when i exit from the FTP session, the commands written after EOF don't get executed.
i.e.
ftp <<EOF
quote $login
quote $password
cd /tmp
mget *somefile*
bye
EOF
echo $some_variable
#This last echo command or whatever piece of commands i... (10 Replies)
Discussion started by: Salman786
10 Replies
10. Shell Programming and Scripting
Hello Brothers,
I am new in shell script.I need a shell script that will run in Linux Server. Script will connect to windows FTP server before connection script will check the connection from linux server to windows server, if connection is ok then show a message and get specific file and... (34 Replies)
Discussion started by: maruf
34 Replies
LEARN ABOUT DEBIAN
dancer::logger
Dancer::Logger(3pm) User Contributed Perl Documentation Dancer::Logger(3pm)
NAME
Dancer::Logger - common interface for logging in Dancer
DESCRIPTION
This module is the wrapper that provides support for different logger engines.
USAGE
Default engine
The setting logger defines which logger engine to use. If this setting is not set, logging will not be available in the application code.
Dancer comes with the logger engines Dancer::Logger::File and Dancer::Logger::Console, but more are available on the CPAN.
Configuration
The logger configuration variable tells Dancer which engine to use.
You can change it either in your config.yml file:
# logging to console
logger: "console"
Or in the application code:
# logging to file
set logger => 'file';
The log format can also be configured, please see "logger_format" in Dancer::Logger::Abstract for details.
Auto-serializing
The loggers allow auto-serializing of all inputs:
debug( 'User credentials: ', \%creds );
Will provide you with an output in a single log message of the string and the reference dump.
AUTHORS
This module has been written by Alexis Sukrieh. See the AUTHORS file that comes with this distribution for details.
LICENSE
This module is free software and is released under the same terms as Perl itself.
SEE ALSO
See Dancer for details about the complete framework.
You can also search the CPAN for existing engines in the Dancer::Logger namespace :
<http://search.cpan.org/search?query=Dancer%3A%3ALogger>.
perl v5.14.2 2012-04-01 Dancer::Logger(3pm)