This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pl. help


Dear Sir;
       i want to read the tape drive with cygwin and copy the data to hard disk
my below  programme is written for linux .pl.hwlp me in converting
window base system
so that i can read/write and copy data with windows Vista.
thanks in advance.
value=0
set `date`
while [ $value -ne 5 ]
do
clear
tput smso
echo "DOTWARE             AHMEDABAD TELECOMM DISTRICT
DATE : $2 $3 $6"
tput rmso
echo
echo
echo
echo "COMPUTER CELL          TR-BILL ACTIVITY MENU                 TIME : $4"
echo "                       -------------------------"
echo
echo
echo
echo "                 1)   [    5 E S S  Stream-0             ]"
echo
echo
echo "                 2)   [    5 E S S Meter Tape            ]"
echo
echo "                 3)   [    Tranfer File TO TR-BILL       ]"
echo
echo "                 4)   [    Copy Stream-0 File from IOBAS ]"
echo
echo "                 5)   [    Exit                          ]"
echo
echo
echo -n  "              Enter choice 1 - 5 :   "
read choice
echo
case "$choice" in
       1)clear
         echo "       5-ESS  stream-0 DAT dump into the Computer          :"
echo
         cd /home/detail/data
         dd if=/dev/nst0 of=/home/detail/data/yy conv=ascii
         dd ibs=10000 conv=ascii if=/dev/nst0 of=/home/detail/data/ama
         echo "       Enter input-File Name  :"
         read x
         echo "       Enter Output-File Name :"
         read y
         mv $x $y
         read h
         sleep 2
         ;;
       2)clear
         echo "       5-ESS  Meter Tape  Converted in to TEXT Format :"
echo
         cd /home/detail/data
         dd ibs=10000 if=/dev/nst0 of=/home/detail/data/mul
         dd if=/dev/nst0 of=/home/detail/data/yy
         echo "       Enter input-File Name  :"
         read x
         echo "       Enter Output-File Name :"
         read y
         mv $x $y
         read I
         ;;
       3)clear
         echo "       5-ESS transfer to TR-BILL Server              :"
         cd /home/detail/data
         ls -l
         ftp 10.72.2.173

         ;;
       4)clear
         echo "       Copying Stream-0 File from IOBAS              :"
         cd /home/iobas/Cdr_Completed
         ls -l
         echo "       Enter the File Name to be Copied              :"
         read l
         cp /home/iobas/Cdr_Completed/$l /home/detail/data
         cd /home/detail/data
         ls -l
         echo "       Enter Output File Name                        :"
         read n
         mv $l $n
         ls -l
         ;;
       5)clear
         exit;;
esac
done




-- 
sde 5ess bdr

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]