11-30-2006
#Try the following script
###############################
HOST='10.174.47.132'
USER='dbg\\azaveri-a'
PASSWD='Pass@word2'
cd /usr/Fax
a=`echo $p\_1\.txt`
b=`echo $q\_1\.txt`
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd post
bi
lcd /usr/Fax/
prompt off
put $a $b
quit
END_SCRIPT
exit 0
#####################################
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello. Can someone please help, or give me any advice. The company I work for has a unix machine and works over the com port rather than IP. We need to retrieve some files from it onto another unix machine and we are trying to get an ftp program to work, does anyone know any ftp programs that... (1 Reply)
Discussion started by: badge
1 Replies
2. Shell Programming and Scripting
Hi all ,
Can u please help me in this. I tried to just login server through the below script
SERVER="Server_NAME"
USER="i am user"
PASSWD="mypassword"
ftp -in $SERVER<<EOF
user $USER $PASSWD
mkdir Chanakya #To create directory with my name in $HOME
ls > list
put list
bye... (5 Replies)
Discussion started by: Chanakya.m
5 Replies
3. Shell Programming and Scripting
Hi All,
I need to know if it is possible ftping files from unix box to windows box .
if yes , how ?. Is there any pre-requisits.
Please tell me the steps, this is very urgent.
Thnx
Aru (8 Replies)
Discussion started by: aarora_98
8 Replies
4. UNIX for Dummies Questions & Answers
Hello. I'm new to Unix. I've got a SUN Ultra 10 running Solaris 5.7 and I'm trying to FTP to it from my XP PC. My PC has an IP address of 10.0.0.3 and a Subnet of 255.255.255.0. I'm connected to the Sun machine with a crossover cable. I type "ifconfig hme0 10.0.0.5" in a shell window (as... (3 Replies)
Discussion started by: dtferreira
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I want to connect to a remote machine using FTP, check for the size of a file there. If it is 0 bytes, then there is no need to ftp else i have to ftp the file. Any help will be highly appreciated. (7 Replies)
Discussion started by: vikas.rao11
7 Replies
6. Shell Programming and Scripting
Hi All,
I'm trying to write script to ftp some files and then need to remove these files from server.
Is there any way to keep the condition that the file should be removed only after successfully transfered to the destinatino server?
If in case, the file isn't been transferd, it should not be... (5 Replies)
Discussion started by: im_new
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Request Unix gurus to kindly share a script which FTPs multiple files from Unix to a Mainframe GDG.
The script should check for oldest file named as 'abc*.txt' in a directory '/dir/child'. FTP that file to MF, then remove the file from unix and then look for the next oldest file to be... (1 Reply)
Discussion started by: dsrookie
1 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I have been trying to FTP some data files from Windows directory to a UNIX server. The txt file in the windows contails the following data:
"111~XYZ~1~Contact person’s phone number~COMMENTS~~~~"
but the same line is appearing as
"111~XYZ~1~Contact person^Òs phone number~COMMENTS~~~~"... (8 Replies)
Discussion started by: vkumbhakarna
8 Replies
9. UNIX for Dummies Questions & Answers
i want to sftp a .zip file.when i am doing get abc.zip thenabc.zip is getting copied to my home folder.
but on clicking abc.zip on my home folder to open it i am getting error message as
"Unable to unarchive abc.zip into <homefolder> name"
How to sftp the Zip file
Thanks (1 Reply)
Discussion started by: bmrout007
1 Replies
10. Shell Programming and Scripting
Hi,
Below is the script which ftps the file from unix server and putting in a different directory(but on unix server)
How can i ftp the files from unix server and to place in a secure location on windows server? what changes needs to be done to the below script?
How can this be... (1 Reply)
Discussion started by: venkatesht
1 Replies
echo(3XCURSES) X/Open Curses Library Functions echo(3XCURSES)
NAME
echo, noecho - enable/disable terminal echo
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library... ]
#include <curses.h>
int echo(void);
int noecho(void);
DESCRIPTION
The echo() function enables Echo mode for the current screen. The noecho() function disables Echo mode for the current screen. Initially,
curses software echo mode is enabled and hardware echo mode of the tty driver is disabled. The echo() and noecho() functions control soft-
ware echo only. Hardware echo must remain disabled for the duration of the application, else the behavior is undefined.
RETURN VALUES
Upon successful completion, these functions return OK. Otherwise, they return ERR.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
getch(3XCURSES), getstr(3XCURSES), initscr(3XCURSES), libcurses(3XCURSES), scanw(3XCURSES), attributes(5), standards(5)
SunOS 5.10 5 Jun 2002 echo(3XCURSES)