Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3DB86E05.8CAEFB99@umassp.edu> Date: Thu, 24 Oct 2002 18:02:45 -0400 From: "Karen McLaughlin" X-Accept-Language: en MIME-Version: 1.0 To: Gen Zhang CC: cygwin AT cygwin DOT com, Karen McLaughlin Subject: Re: scheduling jobs References: Content-Type: multipart/mixed; boundary="------------9B613F1792C0F3F98F487D4D" --------------9B613F1792C0F3F98F487D4D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks to all who helped with this problem --- Gen Zhang wins for the easiest solution to my problem ... this command works --- if i JUST did bash --login it logs into bash and sits there ... if i just did bash -c "file" it doesn't have the right path to the bash commands (cp, mv, date) and it gives errors on each one ... this could be averted by putting in full command path on each and every command --- but bash --login -c "file" logs in --- it has the path information for the bash commands and it can run my script ... woo hoo --- i figured either i or the boss was going to kill each other today over this one --- so a life has been spared! Gen Zhang wrote: > I guess I phrased badly last time. To get all the paths automatically > set up, add the '--login' switch on the bash command, so that you get > 'bash --login -c '. The --login will cause bash to read > ~/.profile before it starts. The NT version of cron is called 'AT'. I > can't remember the exact syntax, but if you type 'HELP AT' at the > command line in a dos box you will get something (hopefully) helpful. > > Genneth > > > -----Original Message----- > > From: Karen McLaughlin [mailto:k DOT mclaughlin AT umassp DOT edu] > > Sent: 24 October 2002 00:10 > > To: Harig, Mark A.; Karen McLaughlin; cygwin AT cygwin DOT com > > Subject: RE: scheduling jobs > > > > i think i used the wrong term when i said window ... > > bash is working ... i can use a dos window --- and get in --- not a > > problem there -- > > i dont know where system path on nt is done -- since dos does seem to > know > > about bash --- i think this has been done (i can look this one up in > nt > > help) > > > > i guess what i am asking is can i use the nt at command to schedule > the > > bash script ... > > > > what i did is made a .bat file --- in that file it says > > bash -c > > > > i just tried running the bat manually to see if it ran my bash script > --- > > figured if it did that i would then use at to schedule it ... > > > > so do i want/need cron or is the above scenario ok??? > > > > I think i tried either bash -i --login or both and i believe what > happened > > then is that it got into bash --- and then didnt know what to do ... i > > will > > double check that and let you know for sure but i know i tried various > > ways > > to try to get these two talking > > > > so dos does talk to my cygwin --- sorry for the misunderstanding --- > the > > question is more what do i use to schedule --- and do i need to run > cron > > as > > a service or somethin as a service if i do use cron ... > > > > the cygwin icon is on the start menu --- i cant verify the desktop > right > > now but i will guess yes -- can verify later ... and yes if i click it > it > > launches a dos window and puts me in cygwin (bash) shell ... > > > > thanks for your time and help .... > > > > > > > > > > > > -- > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > Bug reporting: http://cygwin.com/bugs.html > > Documentation: http://cygwin.com/docs.html > > FAQ: http://cygwin.com/faq/ --------------9B613F1792C0F3F98F487D4D Content-Type: text/x-vcard; charset=us-ascii; name="kmclaughlin.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Karen McLaughlin Content-Disposition: attachment; filename="kmclaughlin.vcf" begin:vcard n:McLaughlin;Karen tel;work:413-587-2147 x-mozilla-html:FALSE org:Infrastructure Services;Information Technology Services adr:;;;;;; version:2.1 email;internet:k DOT mclaughlin AT umassp DOT edu title:Network Specialist fn:Karen McLaughlin end:vcard --------------9B613F1792C0F3F98F487D4D Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------9B613F1792C0F3F98F487D4D--