Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problemas with "doscp", doesn't work.

Status
Not open for further replies.

Norberto

IS-IT--Management
Jun 13, 2000
46
PT
I tried edit doscp by scoedit and now doesn’t work.<br>I can’t&nbsp;&nbsp;install tags in my PCS ( SIMATIC ) because de command doscp is corrupt.<br>I copy doscp from other PCS-Terminal to a floppy disk.<br>Now I need to know if will be possible copy the file from a floppy disk&nbsp;&nbsp;to the supervision PCS.( how can I do that??? )<br>I tried transfer the file doscp from another PCS-Terminal by FTP, but I have the same error “530 Login incorrect”.<br>Now I can't copy because I don't have de doscp command.&nbsp;&nbsp;<br><br><br>Tank you all
 
So, if you've still got an uncorrupted copy of doscp on a different machine, you can save it to floppy by doing:<br><FONT FACE=monospace><br>tar cvf /dev/fd0135ds18 /path/to/doscp<br></font><br>To read it onto the machine containing the corrupted copy:<br><FONT FACE=monospace><br>tar xvf /dev/fd0135ds18<br></font><br>Make sure you do the first command specifying the full path to doscp so that it is restored into the correct place.&nbsp;&nbsp;You will need to be logged in as root on both machines when doing this. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
May need tar cvf /dev/rfd0135ds18&nbsp;&nbsp;/path/to/dos.
 
Thank you AndyBo for your help, but I have an error :<br>&quot;a /usr/bin/doscp 68 Tape blocks&quot;<br>What that mean???<br><br>I made this way -&gt; tar csf /dev/fd0135ds18 /usr/bin/doscp<br><br>What's wrong ??<br>
 
That's just some information sent by <FONT FACE=monospace>tar</font> because the &quot;v&quot; (for verbose) option was used.&nbsp;&nbsp;It tells you that <FONT FACE=monospace>/usr/bin/doscp</font> was added (the &quot;a&quot; character at the beginning of the line) to the archive, and that it was 68 tape blocks in size.&nbsp;&nbsp;Don't worry about the fact that it says tape blocks and you are backing up to disk.&nbsp;&nbsp;<FONT FACE=monospace>tar</font> can't tell what type of device it is backing up to, so it always says &quot;Tape blocks&quot;.<br><br>So, you now have a disk containing the file you need.&nbsp;&nbsp;Take it over to the other server, pop it in the disk drive, and enter:<br><FONT FACE=monospace><br>tar xvfp /dev/fd0135ds18<br></font><br>As the doscp program was backed up with an absolute path name, it will be restored to the correct place.&nbsp;&nbsp;Adding the &quot;p&quot; option to tar tells <FONT FACE=monospace>tar</font> to attempt to restore the original file permissions.&nbsp;&nbsp;Once the program is restored, you should be able to use it again. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
Thank you again AndyBo.<br>Everythink works good.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top