On 2012-04-05, marco atzeri wrote: > On 4/5/2012 9:41 AM, J.V. wrote: > >I need to run a .bat file on startup that will launch a cygwin bash script. > > > >I can put the .bat file in the folder "startup" to connect some network > >drives and then I want to launch a bash script. > > > >Can this be done? > > > >thanks > > > >J.V. > > > > yes. > make a copy of cygwin.bat that is in the the cygwin root > and use > > bash -c "your script" > > instead of > > bash --login -i
You may want to keep the "--login" option, e.g., bash --login -c "your script" Otherwise you will not get important parts of the Cygwin environment such as PATH. Regards, Gary -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple