• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

Schedule task in Windows to run a korn-shell script.

I am looking for a way to schedule a Korn Shell script to run in the windows scheduler. I can run an executable (through the scheduler) to open a korn shell session but when I run the script (scheduled just after) it says "could not start". I need a way
for scheduler to tell the script to run in the korn shell window.

any help would be appreciated.

tmurray
0
tmurray22
Asked:
tmurray22
  • 7
  • 5
1 Solution
 
msiceCommented:
you can use a .cmd  .bat or vbs file with the scheduler if that helps. Can you pass a script name to the korn shell exe?
0
 
tmurray22Author Commented:
I created a batch file

start C:\"program files\uwin3.1\usr\bin\login.exe" (this opens the korn shell session)
/c/docume~1/tmurray/auto_build/test2.ksh


did not work. any thoughts ???
0
 
msiceCommented:
is there a way to have the test2.ksh open the login.exe when it is launched i.e if you double click the test2.ksh what happens? If it prompts you maybe you could tell windows to open test2.ksh from now on using this exe C:\"program files\uwin3.1\usr\bin\login.exe"
Then open test2.ksh using a .cmd file
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
tmurray22Author Commented:
I did associate test2.ksh with login.exe. It opens and asks for a password.???
 I cant tell if this a korn shell window or DOS.
0
 
msiceCommented:
are you an admin on the computer?
0
 
tmurray22Author Commented:
I have certain admin rights to schedule tasks ect but do not have top level admin rights.
0
 
msiceCommented:
whats the password for?
0
 
tmurray22Author Commented:
I don't know, thats the strange part. If I run it manually by openeing up the korn shell and typing test2.ksh the It works.

0
 
msiceCommented:
when you run it manually what is the executable you run?
0
 
tmurray22Author Commented:
Its just a uwin login.exe that opens a korn shell session.
0
 
tmurray22Author Commented:
I would like to request a refund of points as I have answered my own question. I will post the answer in the answer chain
0
 
tmurray22Author Commented:
Thanks for the efforts, the answer turned out to be that the "at" folder had the incorrect permissions. Even though I was an admin on the machine that particular folder had system permissions that needed a change of ownership to be altered.
0
 
moduloCommented:
PAQed, with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now