muralisai25
IS-IT--Management
Hi,
I would like to write a DOS batch file that will telnet to a UNIX machine and go to a certain folder and count the number of files of certain format and save the TOTAL COUNT in a file and send that file back to the PC and delete the count file we created from UNIX folder.
I know how to telnet to unix and thats about it. I am not a unix person. There is a catch... The folder name in unix is something like this. /temp/YYMMDD... the folder YYMMDD is the current date when the connection is made to the unix machine... Then i need to count the number of *.HTML files in that folder and save the count in a file and FTP'ed back to my PC.... Does anyone know how to write the unix script or commands in the batch file that wud let me CHECk a folder in UNIX and count the number of files in that folder and send it back to my PC as a text file.
Any help on this would be appreciated.
I would like to write a DOS batch file that will telnet to a UNIX machine and go to a certain folder and count the number of files of certain format and save the TOTAL COUNT in a file and send that file back to the PC and delete the count file we created from UNIX folder.
I know how to telnet to unix and thats about it. I am not a unix person. There is a catch... The folder name in unix is something like this. /temp/YYMMDD... the folder YYMMDD is the current date when the connection is made to the unix machine... Then i need to count the number of *.HTML files in that folder and save the count in a file and FTP'ed back to my PC.... Does anyone know how to write the unix script or commands in the batch file that wud let me CHECk a folder in UNIX and count the number of files in that folder and send it back to my PC as a text file.
Any help on this would be appreciated.