[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference humane::scheduler

Title:SCHEDULER
Notice:Welcome to the Scheduler Conference on node HUMANEril
Moderator:RUMOR::FALEK
Created:Sat Mar 20 1993
Last Modified:Tue Jun 03 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1240
Total number of notes:5017

1151.0. "Redirects Don't Work in Mainstep" by BSS::G_MCINTOSH (Touch Not the Cat, Bot the Glove) Mon Aug 12 1996 20:39

	In the Scheduler 3.0-02 release notes, page 12, almost at the 
    	bottom, it states that the unix redirect ">" command will error
    	if it's in a mainstep in Bourne Shell and Korne Shell.
    
    	I can't get it to work in Cshell either.

	I wonder what OTHER unix symbols don't work.
    
    
	I'm running csh, osf3.2c, sched 3.0-02, AlphaServer 400.
	This run job fails.  Here are the spec:

	SCHEDULE> create job test2 mainstep "ls -la > test.txt" -
	_SCHEDULE> output test2.out
	 SCHED-I-JOBCREATED, Job TEST2(32) Created

	SCHEDULE> run job test2
	 SCHED-I-JOBRUNREQ, Job Run requested for TEST2(32)
	 SCHED-I-JOB_STARTED, Scheduler job TEST2(32) Started on node...
	 SCHED-I-JOB_FAILED, Scheduler job TEST2(32) Failed

	# cat test2.out.err
	  stty: tcgetattr: Not a typewriter
	  > not found


	I decided to test the assertion that it works from a script.
	Here's what I did.  

	First I created a script called script1.sh
		# vi script1.sh
	 	ls -la > test.txt

	Then I opened up protections on it so it could be executed:
		# chmod 777 script1.sh

	Then I created job test3 to include the script:
		SCHEDULE> create job test3 mainstep "/script1.sh" -
		_SCHEDULE> output test.out
		 SCHED-I-JOBCREATED, Job TEST3(33) Created

	Then I ran job test3:

		SCHEDULE> run job test3
		 SCHED-I-JOBRUNREQ, Job Run requested for TEST3(33)
		 SCHED-I-JOB_STARTED, Scheduler job TEST3(33) Started on 
							node alphaserver
		 SCHED-I-JOB_COMPLETED, Scheduler job TEST3(33) Completed
							on node alphaserver


	FYI...	Glenn
T.RTitleUserPersonal
Name
DateLines