Thom McCarthy
asked on
cygwin--maker of madness.
This is a set of deperation questions.
It's even worse because I know ALL the answers are easy.
I'm pretty much a UNIX novice. But I can do the basics on the server.
I was told about and downloaded the latest version cgywin.
I have been able to execute some commands and move about just fine.
But I want to make a cron...can't figure how to get started and all the help I could find on line was how to edit 'em and stuff. I CAN'T MAKE ONE TO EDIT.
I can't execute a shell (program). I have them in the root directory (and several others) and I just get a "command not found"-type message when I type in the name.
Not sure if I need to run from some place particular, or a specific mode (I did "chmod" the file).
Need to know WHAT I need to know about administrator, or superusers to the extent that I need stuff to work on my PC (I'm the only user)
As I said I've USED UNIX before, I never ran the OS or the system behind it.
Help...you can see I need it.
Thanks
It's even worse because I know ALL the answers are easy.
I'm pretty much a UNIX novice. But I can do the basics on the server.
I was told about and downloaded the latest version cgywin.
I have been able to execute some commands and move about just fine.
But I want to make a cron...can't figure how to get started and all the help I could find on line was how to edit 'em and stuff. I CAN'T MAKE ONE TO EDIT.
I can't execute a shell (program). I have them in the root directory (and several others) and I just get a "command not found"-type message when I type in the name.
Not sure if I need to run from some place particular, or a specific mode (I did "chmod" the file).
Need to know WHAT I need to know about administrator, or superusers to the extent that I need stuff to work on my PC (I'm the only user)
As I said I've USED UNIX before, I never ran the OS or the system behind it.
Help...you can see I need it.
Thanks
ASKER
Thanks-
Is there an equivilent to cron in cygwin?
I've used crons before. In fact I was going to use the cron on the PC side to make stuff available for a cron on the server.
Is there an equivilent to cron in cygwin?
I've used crons before. In fact I was going to use the cron on the PC side to make stuff available for a cron on the server.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>I can't execute a shell (program)
I don't know whether DOS will execute a file called "test.sh" as a batch file; Try renaming it to test.bat. Within the script, you'll have to set the PATH to include the cygwin programs (From within cygwin, `echo $PATH` and in each script you want to call from DOS/Windows, have a 'PATH=C:\PROGRA~1\...\cygw in\bin' line).
>Is there an equivilent to cron in cygwin?
You could use the Windows Task Scheduler.
I'd say you were getting to the point where you need a real Unix/Linux system to work on...Maybe make your PC dual-boot Windows/Linux
I don't know whether DOS will execute a file called "test.sh" as a batch file; Try renaming it to test.bat. Within the script, you'll have to set the PATH to include the cygwin programs (From within cygwin, `echo $PATH` and in each script you want to call from DOS/Windows, have a 'PATH=C:\PROGRA~1\...\cygw
>Is there an equivilent to cron in cygwin?
You could use the Windows Task Scheduler.
I'd say you were getting to the point where you need a real Unix/Linux system to work on...Maybe make your PC dual-boot Windows/Linux
ASKER
Thanks all-
Thanks again jkr.
I made the most progress with you answer.
Thanks again jkr.
I made the most progress with you answer.
crontab -e
This takes you into the current crontab file for the user. Each line in this file represents a cron job to run.
Here is a simple tutorial on using cron:
http://www.superscripts.com/tutorial/crontab.html
In order to execute a progam, you have to either have it in your PATH or fully qualify the path to the program.
To see your current path type:
echo $PATH
A super user can do anything there is to be done in UNIX. I am not sure if there is any significance to that in Cygwin on your PC.
I would pick up a book on UNIX. Suggestions on a title would depend on the flavor of UNIX you are interested in. O'Reilly books seem to be good overall.