Sponsored Content
Top Forums Shell Programming and Scripting executing *.bat file on windows from Unix box via ftp command Post 97285 by alx on Friday 27th of January 2006 05:29:59 PM
Old 01-27-2006
I see what you're saying...
Here's the thing - I need to connect from Unix box to windows box and get latest *.txt file from some remote directory (there might be multiple *.txt files in this directory). I have no way of knowing what the latest file is since ftp does not support any of the dir or ls options such as dir /O-d or ls -lt. If i get all *.txt files form remote windows box they loose their time stamps during the transfer and I still can't find out which latest file.
If you can advise anything I'd appreciate it.

-thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to FTP a file generated at UNIX Box to NT Box

Hi all, I am generating a file on the Unix machine , now i want to FTP the same file to the NT machine. how can i do that and the application currently upon which i am working is a JAVA based application. I need your help. regards Ruchir (2 Replies)
Discussion started by: Ruchir
2 Replies

2. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

3. Shell Programming and Scripting

FTP Unix Box to Windows Shell Script

Hello All, Could someone help me out with this? I want to incorporate this into an existing script so the output of a SAS job can be ftp'd from our UNIX box to a directory on a drive in Windows environment. Can this be done with no extra third party software? We currently use Putty for copy... (2 Replies)
Discussion started by: Jose Miguel
2 Replies

4. UNIX for Advanced & Expert Users

help needed to connect to windows from unix and run .bat file

Hi Can anyone tell if it is possible to connect from Unix to t a remote windows environment and run a .bat script. Do SSH/SFTP... serve my purpose..if s how.... if not which commands or scripts will help with my requiremnt. points on this are greatly honoured. Thanks in advance. :) (1 Reply)
Discussion started by: lakshmis10
1 Replies

5. UNIX for Dummies Questions & Answers

I need an scp command from a unix box to a windows box.

scp file="myfile.txt" todir="user@somehost:(M:drive:/somepath/)"/ Not sure I need it to go to a specific drive on the windows box (1 Reply)
Discussion started by: xgringo
1 Replies

6. Shell Programming and Scripting

FTP some text files from Windows box to unix

hi all, can anybody help me with script or command to ftp some text file from windows machine to AIX machine. this is shud be done by executing a shell script. (1 Reply)
Discussion started by: suprithhr
1 Replies

7. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

8. Solaris

file showing 0 byte after ftp from windows to solaris 10 box

Dear All I am trying to put a file from window system to solaris 10 box through ftp, but after connected to solaris 10 through window via ftp, I put a file( its a solaris package) through put command to solaris box. When I checked it on solaris box I get a file having 0 bytes. even I try to put... (3 Replies)
Discussion started by: amity
3 Replies

9. Windows & DOS: Issues & Discussions

Executing .bat file

Hi , I have a bat file on windows machine ,I need to excute it from my local unix machine using sambe utility.Is there any comman to execute the .bat file remotely. Using samba utility i can post files to and fro from windows to unix but i don't comman to exute the .bat file. can any one... (2 Replies)
Discussion started by: Raamc
2 Replies

10. Shell Programming and Scripting

UNIX command to copy files from Windows to UNIX box

Hi Folks, I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/ now the credentials of unix box are abc345 -->(dummyid) ftyiu88--->(dummy passwd) ... (4 Replies)
Discussion started by: punpun66
4 Replies
MasonX::ProcessDir(3pm) 				User Contributed Perl Documentation				   MasonX::ProcessDir(3pm)

NAME
MasonX::ProcessDir - Process a directory of Mason 2 templates VERSION
version 0.02 SYNOPSIS
use MasonX::ProcessDir; # Generate result files in the same directory as the templates # my $pd = MasonX::ProcessDir->new( dir => '/path/to/dir' ); $pd->process_dir(); # Generate result files in a separate directory # my $pd = MasonX::ProcessDir->new( source_dir => '/path/to/source/dir', dest_dir => '/path/to/dest/dir' ); $pd->process_dir(); DESCRIPTION
Recursively processes a directory of Mason 2 templates, generating a set of result files in the same directory or in a parallel directory. Every file with suffix ".mc" will be processed, and the results placed in a file of the same name without the suffix. ".mi", autobase and dhandler files will be used by Mason when processing the templates but will not generate files themselves. For example, if the source directory contains Base.mc httpd.conf.mc proxy.conf.mc etc/crontab.mc blah.mi somefile.txt and we run my $pd = MasonX::ProcessDir->new( source_dir => '/path/to/source/dir', dest_dir => '/path/to/dest/dir' ); $pd->process_dir(); then afterwards the destination directory will contain files httpd.conf proxy.conf etc/crontab somefile.txt where foo and bar are the results of processing foo.mc and bar.mc through Mason. Base.mc and blah.mi may be used during Mason processing but won't generate result files themselves. This class is a convenience extension of Any::Template::ProcessDir. CONSTRUCTOR
Specifying directory/directories o If you want to generate the result files in the same directory as the templates, just specify dir. my $pd = MasonX::ProcessDir->new( dir => '/path/to/dir', ... ); o If you want to generate the result files in a separate directory from the templates, specify source_dir and dest_dir. my $pd = MasonX::ProcessDir->new( source_dir => '/path/to/source/dir', source_dir => '/path/to/dest/dir', ... ); Mason options mason_options An optional hash of options to the Mason interpreter. For example, the default Mason data directory will be ".mason" under the source directory, but you can override this: mason_options => { data_dir => '/path/to/data/dir' } Options inherited from Any::Template::ProcessDir See Any::Template::ProcessDir for other options, such as dir_create_mode file_create_mode readme_filename SUPPORT AND DOCUMENTATION
Bugs and feature requests will be tracked at RT: http://rt.cpan.org/NoAuth/Bugs.html?Dist=MasonX-ProcessDir bug-masonx-processdir@rt.cpan.org The latest source code can be browsed and fetched at: http://github.com/jonswar/perl-masonx-processdir git clone git://github.com/jonswar/perl-masonx-processdir.git SEE ALSO
Mason, Any::Template::ProcessDir AUTHOR
Jonathan Swartz <swartz@pobox.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-03-07 MasonX::ProcessDir(3pm)
All times are GMT -4. The time now is 12:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy