N
N
Nikita Nafranets2016-03-07 06:18:47
bash
Nikita Nafranets, 2016-03-07 06:18:47

How to bind sh script to context menu in windows?

I made a script, I want to run it pkm-> run the script. I add a command through the menu editor

C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%V" /cygdrive/d/Work/scripts/sh/script.sh

I call the command and I just open the terminal with the current position.
I did sh.exe /cygdrive/d/Work/scripts/sh/script.sh and -sh, -bash, bash, sh and others wrote paths. Does not help. How to start? thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Nafranets, 2016-03-07
@Dimensi

Is my question really difficult?

O
Oleg, 2016-03-08
@hobo-mts

This is how I start/stop lighttpd with Perl. Maybe it will help.

C:\x\cygwin\bin\mintty.exe -h start /bin/bash -l -c "/cygdrive/c/do/scripts/lighttpd.pl"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question