[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2004-08-04
15
Medium Priority
?
403 Views
Last Modified: 2010-04-12
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
Comment
Question by:tmurray22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
15 Comments
 
LVL 7

Expert Comment

by:msice
ID: 11720979
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
 

Author Comment

by:tmurray22
ID: 11730344
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
 
LVL 7

Expert Comment

by:msice
ID: 11731052
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:tmurray22
ID: 11732324
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
 
LVL 7

Expert Comment

by:msice
ID: 11736523
are you an admin on the computer?
0
 

Author Comment

by:tmurray22
ID: 11738945
I have certain admin rights to schedule tasks ect but do not have top level admin rights.
0
 
LVL 7

Expert Comment

by:msice
ID: 11739030
whats the password for?
0
 

Author Comment

by:tmurray22
ID: 11755643
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
 
LVL 7

Expert Comment

by:msice
ID: 11755659
when you run it manually what is the executable you run?
0
 

Author Comment

by:tmurray22
ID: 11772949
Its just a uwin login.exe that opens a korn shell session.
0
 

Author Comment

by:tmurray22
ID: 12338854
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
 

Author Comment

by:tmurray22
ID: 12338907
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
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12420686
PAQed, with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question