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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Floppy Script

Status
Not open for further replies.

Norberto

IS-IT--Management
Jun 13, 2000
46
PT
Hi,
I want copy some files from my SCO to Floppy but that files are to big and the floppy isn't enough,...
I made a Script to copy that files to floppy but I don't now change the script for check if the disk are full or not or put another floppy disk if is necessary,...
ex:
#!/bin/ksh
for F in LOG*.csv
do
doscp $F a:$F.csv
done
echo Ficheiros copiados com sucesso, Obrigado.

P.S. Some files are more the 8 characters, the unix change to 4 characters, that is now good...How I rename de files before copy to Floppy?? remember that files need array,... like LOG.FEB25-1 , LOG.FEB26-1,...ect.
 
I have an ftp script that I use daily. It copies files off of my SCO box onto another host. I created a cron to automate the task. I would be happy to share my script.



-Danny






 
Thank you abovebrd perhaps is useful...
This 2 servers running a PCS system for monitoring automations,... I can get acess by another S.O. like NT.
So every weeks I need alarms reports from SCO, the only way is by floppy disk after that I organize that reports for NT.
So Access by FTP aren't useful,...
You can send a script by e-mail to norberto@aeiou.pt


P.S. You now anyway to get acess by NT to SCO or SCO to NT???

Thank you
 
You can FTP directly from your NT box to you SCO box.

Check to make sure FTP is running on the SCO box.
Look in /etc/inetd.conf
The line you are looking for is:
ftp stream tcp nowait root /etc/ftpd ftpd

If the line has a # in front of it ftp is not running.

You would need to create a dos batch file on the NT machine to automate the FTP process.

Here is my script. It may not help you , but its a start.
This script I on my SCO box.

ftp -inv <<!
open 192.168.1.23
user username password
bin
put file1
put file2
put file3
quit

I think there is a way to seperate files accross several floppy disks. I think you have to use dd for that. Maybe someone else has that answer.


-Danny






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top