Sponsored Content
Top Forums Shell Programming and Scripting Ftp script hangs for first time,but works every second time Post 302638195 by pravin27 on Thursday 10th of May 2012 02:45:17 AM
Old 05-10-2012
Remove the sapce before CMDEND
Code:
ftp -n servername <<CMDEND
user dummy ***passwd**
lcd ${FOCUS_ROOT}/intf/activeout
cd /f001/sftp/hlc/tr/in/JAPAN
put ST11_Payment_AP.utf ST11_Payment_AP_$DATE.UTF
put ST11_Payment_GL_VR.utf ST11_Payment_GL_VR_$DATE.UTF
put ST11_Payment_GL_OT.utf ST11_Payment_GL_OT_$DATE.UTF
bye
CMDEND

Hope this will help you. !!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ftp time on Solaris 8

Hello all, Does anyone know how to set the timeout limit on Solaris ftp machine. Thanks all (2 Replies)
Discussion started by: larry
2 Replies

2. SuSE

Regarding Time Stamping in the FTP Server

How can i change the FTP Server time stamping? Problem is 1. Our server timing is Fri Feb 13 14:17:22 SGT 2009 2. Out FTP Server timing is GMT Can anyone tell me how can i make the FTP Server timing is our local timing? (5 Replies)
Discussion started by: kingganesh04
5 Replies

3. Shell Programming and Scripting

append date time stamp via ftp script

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

4. HP-UX

Strange- RCP command works every other time

This just started happening. I use the rcp command to copy a file from one server to another. Now when I use the command, every other time I execute the exact same command I get the error: remshd: login correct Example: 1. rcp testfile server2:/db/tmp (Work ok, verified file... (6 Replies)
Discussion started by: jrowland
6 Replies

5. UNIX for Dummies Questions & Answers

machine hangs for some time after giving password.

Hi I m trying to take a console of linux machine using putty. Whenever i connect to the machine and give password details to log into the machine it hangs for some time and then it allow the login. I m totally clueless why it is happening suddenly . ---------- Post updated at 01:14 AM... (1 Reply)
Discussion started by: pinga123
1 Replies

6. Shell Programming and Scripting

Shell script to convert epoch time to real time

Dear experts, I have an epoch time input file such as : - 1302451209564 1302483698948 1302485231072 1302490805383 1302519244700 1302492787481 1302505299145 1302506557022 1302532112140 1302501033105 1302511536485 1302512669550 I need the epoch time above to be converted into real... (4 Replies)
Discussion started by: aismann
4 Replies

7. Shell Programming and Scripting

ftp multiple files at the same time

Hi All, I am using ncftpput in one of my c-shell script to upload files to a remote location. The source files keep coming continuosly and to upload each file ncftpput opens a new connection everytime. It means ncftp uploads the file1 than file2 than file3 .... There is gap 20-25 secs between... (10 Replies)
Discussion started by: sraj142
10 Replies

8. Shell Programming and Scripting

what would a script include to find CPU's %system time high and user time high?

Hi , I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( . how to find cpu's system high time and user time high in a script?? thanks , help would be appreciated ! :) (9 Replies)
Discussion started by: sushwey
9 Replies

9. Shell Programming and Scripting

Script in bash that works only some of the time

I ran this script yesterday (in the background) /usr/bin/nohup myfilelocation/myscriptname.sh & the script worked perfectly. i ran it today (also in the background) and just sat there. So i killed it and ran it normally and it worked perfectly. Anyone suggest why it just sat there and... (8 Replies)
Discussion started by: twinion
8 Replies

10. Shell Programming and Scripting

Perl error in batch command but works one at a time

In the below perl executes if one file is processed perfect. However, when multiple files are processed in batch which is preferred I get the below error that I can not seem to fix it as the '' necessary for the command to execute, but seem to only work for one -arg option. Thank you :). ... (2 Replies)
Discussion started by: cmccabe
2 Replies
TESTPARM(1)															       TESTPARM(1)

NAME
testparm - check an smb.conf configuration file for internal correctness SYNOPSIS
testparm [ -s ] [ -h ] [ -x ] [ -L <servername> ] config filename [ hostname hostIP ] DESCRIPTION
This tool is part of the Samba suite. testparm is a very simple test program to check an smbd configuration file for internal correctness. If this program reports no problems, you can use the configuration file with confidence that smbd will successfully load the configuration file. Note that this is NOT a guarantee that the services specified in the configuration file will be available or will operate as expected. If the optional host name and host IP address are specified on the command line, this test program will run through the service entries reporting whether the specified host has access to each service. If testparm finds an error in the smb.conf file it returns an exit code of 1 to the calling program, else it returns an exit code of 0. This allows shell scripts to test the output from testparm. OPTIONS
-s Without this option, testparm will prompt for a carriage return after printing the service names and before dumping the service def- initions. -h Print usage message -x Print only parameters that have non-default values -L servername Sets the value of the %L macro to servername. This is useful for testing include files specified with the %L macro. configfilename This is the name of the configuration file to check. If this parameter is not present then the default smb.conf file will be checked. hostname If this parameter and the following are specified, then testparm will examine the hosts allow and hosts deny parameters in the smb.conf file to determine if the hostname with this IP address would be allowed access to the smbd server. If this parameter is supplied, the hostIP parameter must also be supplied. hostIP This is the IP address of the host specified in the previous parameter. This address must be supplied if the hostname parameter is supplied. FILES
smb.conf This is usually the name of the configuration file used by smbd. DIAGNOSTICS
The program will issue a message saying whether the configuration file loaded OK or not. This message may be preceded by errors and warn- ings if the file did not load. If the file was loaded OK, the program then dumps all known service details to stdout. VERSION
This man page is correct for version 2.2 of the Samba suite. SEE ALSO
smb.conf(5) smbd(8) AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter 19 November 2002 TESTPARM(1)
All times are GMT -4. The time now is 01:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy