GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to run cygwin (or more correctly bash) on a windows server, this for parsing the Apache logs using a bash script.
All is fine, I've downloaded cygwin & installed it on the server, the only trouble is that I can't set cygwin to run as a service on the windows server.
Somebody maybe aware of an option of setting cygwin (or just bash + cron jobs) without logging in as a user (i.e. "service") on windows.
One other solution someone offered me on a different forum, was the obvious cron job.
The trick is to set cron to run as a service on windows, this is done using cygrunsrv the problem now is this : I just can't find the documentation of it to see what option I can set, and I wouldn't want to make services (or the server) without fully understanding what and how then run.
b.t.w Could you please in 2 words explain why :
use interactive shell ?
and
why does it needs to be a login shell ?
Anyhow, thank you for the idea of using windows scheduler.
Maxim.
probably doesn't need to be interactive, alls I did was look at the cygwin.bat file, look at 'man bash' to find out how to run a script file directly then put the two together, didn't pay any attention to the arguements already there.
Aslo I never knew about the cygrunsrv app. If I had read all the documentation I probably would be able to come up with a more elegant solution.
I only use cygwin on my laptop and when I can't ssh into my server or my university deparmental computers, which really isn't that often.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.