Well thanks I will have to try that.

My only other option was to create a menu and execute in from my profile ... and instead of shortcuts ... they would be options off a menu.

I also found out you can create symbolic links under Win 7, WIn XP (you must download this Junction Program) and also do this under various Unix/Linux versions.





On 3/1/2014 10:52 AM, Max Polk wrote:
On 2/28/2014 9:09 AM, mrushton wrote:
Can some on give me a help with creating a shortcut to a shell script under Windows 7 ?


I am doing something like this in the windows shorcut :

C:\CygwinSoftware\bin\mintty.exe -i /Cygwin-Terminal.ico --exec /cygdrive/x/INBOUND/CWSCRIPTS/mymenu.sh

Well I found in the documentation that when you run a script this way, it is not an interactive shell and it does not process your .bashprofile and .bashrc and all the good stuff it normally does when it logs in. I am missing aliases when it logs in this way.

How can I create a shortcut that would process my normal startup files and then run the script I what ?

From cmd.exe you can exec bash with the login and interactive flags, and pass it a command like this to see all your vars:

C:\Apps\Cyg\bin\mintty.exe --exec /bin/bash --login -i -c "set && read x"

In Windows create a shortcut and simply paste the above in.

--
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




--
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

Reply via email to