systemnotes org Location: System Notes / download / Mcopy

Help for Aspiring Sysadmins

Linux / Open Source / Howto / Tips & Tricks

Language: en
 






Latest News

2009.07.29
RHCE Flash Cards Released

2008.01.11
Website Design Updated. This is a work in progress...

2008.01.11
RHCE Study Guide Removed due to a potential copyright issue

2007.12.03
RHCE Study Guide Released

 

Links:



Do you find this site useful?

donate









Spread Firefox Affiliate Button

Documents


mcopy

Batch file name: mcopy.bat

Originally published on Novell Cool Solutions Cool Tools, as “Install NDSAUTOhttp://www.novell.com/coolsolutions/tools/1544.html

Copy files to multiple servers listed below, or to a single server name entered from command prompt.

File iconmcopy.zip (5.18 KiB)




Here is the Novell Cool Solutions Listing:


In Brief

Install the NDSAuto Cool Tool to multiple servers. Vitals

Product Categories:

  1. eDirectory

Functional Categories:

  1. Batch File
  2. Secure Identity
  3. Server Utilities

Posted: 25 Oct 2002

File Size: 2KB

License: Free

Download:

File iconinstall_ndsauto.zip (1.59 KiB)




Publisher: Scott McClelland

Disclaimer

Please read the note from our friends in legal before using this file.

Details

I used NDSAuto from Cool Tools, and found it to be very useful. Since there was no easy way to install it to multiple servers, I created a batch file which turned out to be useful for many other purposes.

Purpose: Install NDSAuto (or other files, after modifying the batch file) to multiple servers, or to a single server entered from the command prompt. Can be modified to run any commands, such as copying updated slp.cfg or host files, checking volume space, or gathering logs.

To Use: Copy this batch file to the directory containing NDSAuto Files (e.g. c:\ndsauto)Edit variables in the “User Input” section, or use a single server as a parameter (e.g. “c:\ndsauto>Install_NDSAuto FS10”).(syntax: set var=text (no spaces around ’=’)

Variables that can be modified by the user: Drive letter: Default = R: MyFilepath: Default = . – (current directory).

Server Names: = Default = FS101 … FSxxx (Enter your server names, as required) Commands to run: Default CMD1= copy MYFILEPATH r:\system > nul CMD2= copy r:\etc\crontab r:\etc\crontab.old CMD3= copy %MYFILEPATH%crontab r:\etc\crontab.nds CMD4= copy %MYFILEPATH%cron.msg r:\system\NLS\4 CMD5=

If you have already tested NDSAuto and want to modify crontab, you can change CMD5 to set CMD5= copy r:\etc\crontab.nds r:\etc\crontab, or change “CMD3= copy %MYFILEPATH%crontab r:\etc\crontab.nds” to “CMD3= copy %MYFILEPATH%crontab r:\etc\crontab”

Note: If you are currently using crontab for something else, then you will want to modify the crontab in your source directory before running the batch file.


back
downloads