ADSM-L

Re: [ADSM-L] schedulde command with date suffixed log file

2014-03-31 11:35:02
Subject: Re: [ADSM-L] schedulde command with date suffixed log file
From: Rick Saylor <rsaylor AT AUSTINCC DOT EDU>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Mon, 31 Mar 2014 10:31:58 -0500
Arnaud,

It was unclear whether you wanted the log file on the TSM host or
client. However, I'm assuming that you want to log the output when
the script runs on the client. You'll need to put extra quotes around
the object for this to work. See below:

def sched aix
test_sched  act=command  objects='"/tmp/test.sh >/tmp/test.log.`date
'+%d.%m.%Y'` 2>&1"' durunits=minutes duration=10 startt=now peru=o priority=1

Rick

At 09:27 AM 3/31/2014, you wrote:
Hi all,

A quick one: does anyone have the proper syntax to define a client
schedule (using admin command line, or macro) that would execute a
command having some date-suffixed log file, like :

def sched aix
test_sched  act=command  objects="/tmp/test.sh >/tmp/test.log. `date
'+%d.%m.%Y'` 2>&1" durunits=minutes duration=10 startt=now peru=o priority=1

TSM server is 6.3.3.1 and runs under AIX .

I already have tried various combinations of single and double
quotes without success  ...

TIA.

Cheers.

Arnaud


----------------------------------------------------------------------------
Rick Saylor                  Austin Community College   Voice: (512)223-1182
Director of System Services  9101 Tuscany Way           Fax:   (512)223-1211
Information Technology       Austin, Texas  78754

<Prev in Thread] Current Thread [Next in Thread>