Results 1 to 9 of 9
Thread: Script - Command Line
-
02-14-2011, 11:16 AM #1Member
- Join Date
- Feb 2011
- Posts
- 91
- Thanks
- 1
- Thanked 1 Time in 1 Post
Script - Command Line
Hi,
How to run a script with the TXT extension using the TSM command line, example: script.txt
Thank you for your attention,
Ramon
-
02-14-2011, 11:28 AM #2Member
- Join Date
- Nov 2005
- Posts
- 42
- Thanks
- 0
- Thanked 2 Times in 2 Posts
run script.txt
-
02-14-2011, 02:23 PM #3Member
- Join Date
- Feb 2011
- Posts
- 91
- Thanks
- 1
- Thanked 1 Time in 1 Post
neerajkgupta,
Has failed, as follows:
tsm: PRRJ>run script.txt
ANR1455E RUN: Command script SCRIPT.TXT does not exist.
ANS8001I Return code 11.
Thanks,
Ramon
-
02-14-2011, 02:37 PM #4
As far as I know, TSM does not or can not run scripts outside of TSM defined scripts.
If the contents are TSM commands, then you could define a new TSM script and basically copy and paste the contents of that *.txt script. Then if you happen to name the script script.txt, then run the script as neers mentioned.
-
02-14-2011, 02:43 PM #5Member
- Join Date
- Nov 2005
- Posts
- 42
- Thanks
- 0
- Thanked 2 Times in 2 Posts
you need a complete path for the script.txt.
-
02-14-2011, 03:17 PM #6
Using the complete path did not work for me.
I still think TSM does not run scripts that are not defined by TSM.
-
02-14-2011, 03:36 PM #7Member
- Join Date
- Mar 2006
- Location
- France
- Posts
- 95
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hi all,
You have to make the difference between scripts that must be defined and are in the database and macros that are command files that must reside locally on filesystem where dsmadmc is run (and can use a full path name).
See HELP DEFINE SCRIPT, HELP RUN & HELP MACRO
-
02-15-2011, 05:37 AM #8
Macro file_name */ file of the local system/*
run script_name */script defined in TSM DB/**Everybody loves TSM (if understood
)
Sandeep
-
02-15-2011, 09:54 AM #9
Similar Threads
-
restore from command line
By bisaal46 in forum TSM ClientReplies: 4Last Post: 07-01-2009, 04:49 AM -
command line
By Mona in forum Backup / Archive DiscussionReplies: 2Last Post: 11-04-2008, 11:39 AM -
Command line
By aeleter in forum Tape / Media LibraryReplies: 6Last Post: 08-14-2007, 05:17 PM -
Automate script from command line
By tommy13v in forum ScriptingReplies: 2Last Post: 02-04-2005, 12:07 PM -
Command Line not active
By mikle in forum TSM ServerReplies: 2Last Post: 01-20-2004, 08:59 AM


Reply With Quote
