-1

When I run the following command in cygwin,

$ cygrunsrv -I cron -p C:\cygwin64\bin --args -n

I get the following error

cygrunsrv: Given path doesn't point to a valid executable

Why am I getting this error?

Keith Thompson
  • 254,901
  • 44
  • 429
  • 631
Raghu Ram
  • 1
  • 1
  • 1

1 Answers1

1

You only gave a folder and not a path to the executable. Besides this I wouldn't recommend to use windows paths in cygwin, this can cause errors. You should write /cygdrive/c/cygwin64/bin/something instead of C:\cygwin64\bin\something.exe Perhaps you are looking for an installation guide, and you would like to do something like this:

Install cron as a windows service, using cygrunsrv:

cygrunsrv -I cron -p /usr/sbin/cron -a -D
net start cron
Community
  • 1
  • 1
szkj
  • 733
  • 4
  • 14