03-09-2006
How to check for a directory during FTP from WinNT to HP-UNIX
hi All,
I have to Ftp a Directory from the WinNt to Hp-Unix, before that i have to check wether the same directory is present on HP-Unix, if it is then i have to delete that,& do the fresh FTP.
The problem is that i have to implement this in a C Program,which i have to develop on WinNT Envt.
Hope U will Help me in this reagrd.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how to pass files from unix to windows nt?help (8 Replies)
Discussion started by: srinivasanvs
8 Replies
2. UNIX for Dummies Questions & Answers
i am a unix-super-beginner (swaddled and weaned on windows) and am trying to import a database from a unix directory into winnt. can someone help me or am i a hopeless case? (4 Replies)
Discussion started by: sadiecutie
4 Replies
3. IP Networking
I try an RCP command from winnt to unix and it works only with 2 pc but with the two others it dosen't work....? MS-DOS return this error msg : 0826-826 The host name for your address is not known.
What can I do to resolve my probleme ?
Dimitri
Geneva - Switzerland (2 Replies)
Discussion started by: dfrangidis
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
automated FTP that have error check and each product FTP will used the same userid/password to post(transfer) the file(s) from their <product> directory at UNIX to their <product> folder at Windows.
such senarios as follows:
NOTE:
=======
** Variable **
* The <product> is variable... (3 Replies)
Discussion started by: songtam
3 Replies
5. Shell Programming and Scripting
Hi,
My local server is :/usr/abcd/
Remote server is :/Usr/host/test/
I want to send files from local unix directory(All files starting with O_999) to
remote host unix directory.
Can any body give me the Unix Shell script to do this.
One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies
6. IP Networking
Hi
I can transfer a single file and multiple file from unix to widows using get and mget command.But i dont know How to transfer a whole directory from unix to windows using command.
pls help me
Ramkumar (1 Reply)
Discussion started by: ramkumarm83
1 Replies
7. Shell Programming and Scripting
Hi, I'm trying to automate a ftp from a unix box to a windows directory. But i want it to count and only move the files if they are there so that i can cron it. This is what i have, but seems to be failing, can anyone spot what is going wrong?
#! /usr/bin/ksh
cd ????/????/par/942852... (4 Replies)
Discussion started by: dappa
4 Replies
8. Shell Programming and Scripting
Good afternoon!
I need to move a bunch of files from an FTP site to my server.
However mget *, dele * will not suffice as I cannot guarantee that new files are not uploaded between commands.
Roughly, this is what I would like to do:
(using a .netrc)
ftp somehost
bin
prompt
cd... (1 Reply)
Discussion started by: abirdd
1 Replies
9. Shell Programming and Scripting
I am trying to initiate a ftp session from my shell script in the following way.
In my script, as per my requirements i am writing the required ftp commands to a file and then I am using this file to carry out the ftp process.
for example
temp.txt will contain
cd /home/user/mydir
append... (2 Replies)
Discussion started by: anijan
2 Replies
10. Shell Programming and Scripting
Dear All,
i am trying to get the file from windows location to unix location without using FTP and neither thru entering the user id and password. I have one unix form which is running on web application and user is entering the location and file name there now i know the file name and path. So i... (8 Replies)
Discussion started by: ripudaman.singh
8 Replies
MWRITE(1) General Commands Manual MWRITE(1)
NAME
mwrite - low level write (copy) a Unix file to MSDOS
SYNOPSIS
mwrite [ -tnvm ] unixfile msdosfile
mwrite [ -tnvm ] unixfile [ unixfiles... ] msdosdirectory
DESCRIPTION
In the first form, mwrite copies the specified Unix file to the named MSDOS file. The second form of the command copies multiple Unix
files to the named MSDOS directory.
Mwrite will allow the following command line options:
t Text file transfer. Mwrite will translate incoming line feeds to carriage return/line feeds.
n No warning. Mwrite will not warn the user when overwriting an existing file.
v Verbose mode. Display the new filename if the Unix filename requires conversion.
m Preserve the file modification times.
If the target file already exists, and the -n option is not in effect, mwrite asks whether or not to overwrite the file.
Reasonable care is taken to create a valid MSDOS filename. If an invalid name is specified, mwrite will change the name (and display the
new name if the verbose mode is set).
MSDOS subdirectory names are are supported with either the '/' or '' separator. The use of the '' separator or wildcards will require
the names to be enclosed in quotes to protect them from the shell.
The mcd command may be used to establish the device and the current working directory (relative to MSDOS), otherwise the default is A:/.
SEE ALSO
mcd(1), mcopy(1), mread(1)
BUGS
Unlike MSDOS, the destination directory may not be omitted.
local MWRITE(1)