How to replace a file on Unix server with file from my c: drive


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to replace a file on Unix server with file from my c: drive
# 8  
Old 12-23-2011
The "bin" command in ftp is short for "binary" as distinct from "ascii" mode.
It is more likely that you will need "ascii" mode.
Try transferring the file as a test into say /tmp . Then compare with the original file using the "diff" command. I guess that the differences will be to do with your debug mode change to the file.
# 9  
Old 12-28-2011
Bug

I received confirmation that it is a ascii file


Ok my steps will be:


Rename the original Logging.xml file to Logging1.xml on unix - mv Logging.xml Logging1.xml

Then open up the command line in Windows
ftp to the Unix Server(spkupa401)

navigate to folder - cd /WebSphere/MicroStrategy/HealthCenter/spkupa401.cdev.c.net

Use the put command in "ascii" mode
ascii

put the Logging.xml file from my H:\ into the directory /WebSphere/MicroStrategy/HealthCenter/spkupa401.cdev.c.net - put Logging.xml



Code:
mv Logging.xml Logging1.xml 
ftp to the Unix Server(spkupa401) 
cd /WebSphere/MicroStrategy/HealthCenter/spkupa401.cdev.c.net
ascii 
put Logging.xml

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Has anyone created JFS2 file system on a USB drive attached to AIX server?

We have an IBM Power 710. It has a USB port on the front. I have done some searching and see that there is information out there on how to create a JFS2 file system on USB drives. A few have commented that they would not recommend it, if the server is important, may crash the server... Just... (0 Replies)
Discussion started by: mbenedi
0 Replies

2. UNIX for Dummies Questions & Answers

Need help to move .csv file from UNIX path to windows shared drive or c:\ drive

Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies

3. Shell Programming and Scripting

Need help to move .csv file from UNIX path to window c: shared drive

Hi Guys, I need to move myfile.csv file from unix path(\oracle_home) to window c:\ shared drive h:\. Thanks in advance! Regards, Lakshman (1 Reply)
Discussion started by: lakshmanraok117
1 Replies

4. Windows & DOS: Issues & Discussions

Script that, if file exists in Samba share, moves file to Unix server

I'm looking to do pretty much what the title says. I want a script that runs, it can run on Unix or Windows, doesn't matter, and searches a Samba shares for a .txt file. If the file exists, the script will move (or possibly copy) the file from the Samba share into a directory on our Unix... (3 Replies)
Discussion started by: twcostello
3 Replies

5. SCO

Sco unix 5.0 copy file to pen drive

I have a server unix Sco 5.0 and copy some backup files to flopy drive using command "Tar", but i like copy this files to pen drive, is possible ? my know about Sco is less. Tks (1 Reply)
Discussion started by: ger2112
1 Replies

6. UNIX for Dummies Questions & Answers

Copy a windows CVS file to the unix server as a svs file

I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies

7. UNIX for Dummies Questions & Answers

To copy a file from one unix server to another unix server through scripts

I am getting the fallowing error when i am trying to execute the scp commomd in shell script warning: You have no controlling tty. Cannot read confirmation. warning: Authentication failed. Disconnected; key exchange or algorithm negotiation failed (Key exchange failed.). scp2: warning: ssh2... (1 Reply)
Discussion started by: manit
1 Replies

8. Shell Programming and Scripting

file monitoring using unix scripting on shared drive

Hi all, I have a query and need advise. is it possible to have a script which will monitor file/s on network shared drive (windows machine)? Is there a way i can monitor a file is available on shared drive and move it over to unix machine for further processing? Any guidance or advice much... (3 Replies)
Discussion started by: zulfikarmd
3 Replies

9. Shell Programming and Scripting

Deleting a file in Windows drive from Unix script

Objective ******* I was trying to develop a script that moves files from one folder to another in Windows drive from a Unix script. I got ftp account created for those windows folders. I know that for moving a file from Unix server to Windows server we use scp command, but is there a command... (2 Replies)
Discussion started by: anilvaranasi_02
2 Replies

10. Shell Programming and Scripting

ftp from hard drive to unix server

i want to ftp a flat file from my local harddrive to the unix server box. Can anybody send me the command. Thanks (6 Replies)
Discussion started by: dummy_needhelp
6 Replies
Login or Register to Ask a Question