Sponsored Content
Top Forums Shell Programming and Scripting executing *.bat file on windows from Unix box via ftp command Post 97315 by Perderabo on Saturday 28th of January 2006 12:45:15 PM
Old 01-28-2006
You are painted into a corner here. What you want to do is very hard at best and in, some cases, impossible. Some more work needs to be done on the windows system to give you some way of more easily identifying the file you need. However, you can manually look at the output of dir. When you do, can you see which file to get? Bear in mind that, on unix, for old files you get "year" replacing the timestamp. Choosing the newer of two different 1-year old files would not be possible. If you can pick out the file that is needed, so can a very clever script. But be warned, this is not a piece of cake and it is not a job for a beginning script writer. If you want to go down that path, you might be able to get some ideas from: HardFeed a recursive ftp script.
 

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
icmstart(1)						starts icmbuild program maintenance					       icmstart(1)

NAME
icmstart - A startup script for icmbuild program maintenance SYNOPSIS
icmstart [Options] top-dir [program|library] DESCRIPTION
The icmstart script is a generic script that can be used to start program maintenance using icmake(1) and icmbuild(1). Icmstart creates an initial directory top-dir and installs the files CLASSES, VERSION and icmconf below top-dir. A second argument `program' or `library' may be specified as the default mode of operation of the icmbuild(1) script. Skeleton files for the main directory and subdirectories, by default listed in the file /etc/icmake/icmstart.rc, may be installed as well (cf. icmstart.rc(7)). After changing to the directory created by icmstart the icmbuild(1) script may be used for program maintenance. OPTIONS
Icmstart may be called with the following options, which (if specified) must be the first arguments of icmstart: o -c confpath Use the configuration files (icmstart.rc, AUTHOR, YEARS and VERSION) if found in `confpath' rather than in ~/.icmake and/or /etc/icmake/. Once a file is found it is used allowing partial overrides of the default files provided by icmake(1). o -d Do not execute any commands, but show the commands that would have been executed on the standard output. o -I Do not install files. o -r Unconditionally replace existing files. If -r is not provided icmstart will ask the user to confirm that an existing file must be overwritten. If a skeleton specification refers to a directory, the full directory and its subdirectories will be replaced. o -s skeleton-path By default skeleton files are listed in the skeleton resource file /usr/share/icmake/icmstart.rc. Alternatively, the skeleton resource file may be specified by the ICM environment variable, which -in turn- may be overruled by the path specified with the -s option. The skeleton path may be specified as a full file-path or as a directory, in which case the skeleton resource file is assumed to be icmstart.rc (see below at SKELETON FILES). Since icmstart uses cp to install files, cp must be available when icm- start should install skeleton files. SKELETON FILES
Skeleton resource files may contain comment (empty lines and lines beginning with the hash-mark (#)) which is ignored, and should otherwise contain specifications of resource s to install. The default resource file is /etc/icmake/icmstart.rc, contains CLASSES P main.cc P main.ih P usage.cc P version.cc P ? scanner P ? parser This file is overruled by ~/.icmake/icmstart.rc. See icmstart.rc(7) for details about the format of the icmstart.rc file. CONFIGURATION FILES
The configuration files icmstart.rc, AUTHOR, YEARS and VERSION are recognized and processed by icmstart. If the -c option was specified configuration files found in the path specified at this option are used. If not specified or if a file isn't found then the path ~/icmake is inspected. If a configuration file isn't found in ~/icmake either, configuration files in /etc/icmake are used. Configuration files are not required for the proper operation of icmstart. When absent icmstart performs the following default actions: o If the file AUTHOR does not exist icmstart uses #define AUTHOR "". When the file AUTHOR is defined in a configuration path it should have one line, defining the author of the program. E.g., #define AUTHOR "Frank B. Brokken <f.b.brokken@rug.nl>" o If the file VERSION does not exist icmstart uses #define VERSION "0.00.00". When the file VERSION is defined in a configuration path it should have one line, defining the program's initial version. E.g., #define VERSION "1.00.00" o If the file YEAR does not exist icmstart uses #define YEARS "yyyy" where yyyy is the current year. When the file YEAR is defined in a configuration path it should have one line, defining the program's initial release year. E.g., #define YEARS "2012" Plural is used here since a release year usually becomes a range of years after some time, as with Icmake's years specification: #define YEARS "1992-2012" o If the file icmstart.rc does not exist (or is empty) icmstart will not install any of the files normally found in icmstart.rc, but the initial project directory, icmconf and VERSION are installed. ) FILES
The mentioned paths are sugestive only and may be installation dependent: o /usr/share/icmake/icmconf Example of a icmbuild configuration file; o /usr/share/icmake/CLASSES Example of a icmbuild CLASSES file. o /usr/share/icmake/icmstart.rc Default skeleton resource file. SEE ALSO
icmake(1), icmbuild(1), icmconf(7), icmstart.rc(7). BUGS
None reported COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL). AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl). icmake.7.18.00.tar.gz 1992-2012 icmstart(1)
All times are GMT -4. The time now is 05:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy