Pergunte aqui

Perfil de geny - atividade

2019-10-29 12:07:44 +0200 Medalha recebida  Pergunta famosa (fonte)
2019-07-21 13:08:40 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Only for future reference, I solved the issue add -i to run.sh script: #!/bin/bash -i /bin/node /home/geny/Testing/myap

2019-07-21 13:08:40 +0200 Medalha recebida  Palpiteiro
2019-07-21 09:11:16 +0200 Pergunta editada [Solved] Run bash script in BASIC macro

Run bash script in BASIC macro Hello, I'm a novice in Basic macro language. I can't run a bash script from a macro on Ma

2019-07-21 09:10:33 +0200 Marcada como a melhor resposta [Solved] Run bash script in BASIC macro

Hello, I'm a novice in Basic macro language. I can't run a bash script from a macro on Manjaro.

The macro should launch a nodejs script and open a console window. In the konsole (kde), the command 'bash run.sh' works like a charm.

I tried:

Shell "bash -c '/home/geny/Testing/run.sh'"

and

Shell "bash 'home/geny/Testing/run.sh'"

and

x = Shell("/home/geny/Testing/run.sh")

and

Shell("/home/geny/Testing/run.sh", 1,, "true")

(in the last command, x return 0), but nothing works. I mean, the script isn't executed.

The script 'run.sh' consists in only two rows:

#!/bin/bash
node "home/geny/Testing/myapp.js"

What am I doing wrong? Thanks in advance.

2019-07-21 09:10:33 +0200 Medalha recebida  Acadêmico (fonte)
2019-07-21 09:08:35 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Thanks, erAck! Your info is very useful.

2019-07-21 09:06:33 +0200 Medalha recebida  Entusiasta
2019-07-20 16:34:49 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Ok, erAck, we are nearly there. This command works on KDE: x = Shell("/usr/bin/konsole --hold -e /home/geny/Testing/run

2019-07-20 16:34:27 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Ok, erAck, we are nearly there.Tthis command works on KDE: x = Shell("/usr/bin/konsole --hold -e /home/geny/Testing/run

2019-07-20 16:33:00 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Ok, erAck, we are nearly there.Tthis command works: x = Shell("/usr/bin/konsole --hold -e /home/geny/Testing/run.sh"

2019-07-20 16:32:00 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Ok, erAck, we are nearly there.Tthis command works: x = Shell("/usr/bin/konsole --hold -e /home/geny/Testing/run.sh"

2019-07-20 16:30:05 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Ok, erAck, we are nearly there.Tthis command works: x = Shell("/usr/bin/konsole --hold -e /home/geny/Testing/run.sh"

2019-07-20 16:29:44 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Ok, erAck, we are nearly there.Tthis command works: x = Shell("/usr/bin/konsole --hold -e /home/geny/Testingr/run.sh"

2019-07-19 23:16:12 +0200 Medalha recebida  Pergunta notável (fonte)
2019-07-19 20:39:06 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Oh, I understand now,. Tomorrow I will try your solution and will write here the results. Thanks for your assistance.

2019-07-19 18:33:47 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

Ok, it quite works. Thanks Opaque. And yes, myapp.js is interactive. Works but it stops at the first few lines. If I ru

2019-07-19 18:33:37 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

Ok, it quite works. Thanks Opaque. And yes, myapp.js is interactive. Works but it stops at the first few lines. If I ru

2019-07-19 18:31:44 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

Ok, it quite works. Thanks Opaque. And yes, myapp.js is interactive. Works but it stops at the first few lines. If I ru

2019-07-19 18:31:25 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

Ok, it quite works. Thanks Opaque. And yes, myapp.js is interactive. But it stops at the first few lines. If I run manu

2019-07-19 18:29:26 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

Ok, it works. Thanks Opaque. But it stops at the first few lines. If I run manually the script sh, it works until to th

2019-07-19 18:26:59 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

Ok, it works. Thanks Opaque. But it stops at the first few lines. If I run manually the script sh, it works until to th

2019-07-19 17:40:00 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

Yes, I already did it. It is executable, and the command: /home/geny/Testing/run.sh run the node program perfectly.

2019-07-19 17:39:33 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

Yes, I already did it. It is executable, and the command: /home/geny/Testing/run.sh run the node program.

2019-07-19 17:06:33 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

No problem, Opaque! :-) Yes, it was a typo. And... in my VBA macro, the macro launchs a file batch into a prompt window

2019-07-19 17:01:59 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

No problem, Opaque! :-) Yes, it was a typo. And... in my VBA macro, I launch a file batch into a prompt window. Can I d

2019-07-19 17:01:15 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

No problem, Opaque! :-) And... in my VBA macro, I launch a file batch into a prompt window. Can I do it in LibreOffice?

2019-07-19 17:01:07 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

No problem, Opaque! :-) And... in my VBA macro, I launch a file batch into a prompt window. Can I do it in LibreOffice?

2019-07-19 16:25:52 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

The line "/bin/node" "/home/geny/Testing/run.sh" works if I run this command manually in the konsole. Node is instal

2019-07-19 16:24:56 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

The line "/bin/node" "/home/geny/Testing/run.sh" works. Node is installed in /bin and there is only a file named "no

2019-07-19 16:24:25 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

"/bin/node" "/home/geny/Testing/run.sh" This works. Node is installed in /bin and there is only a file named "node" 21,

2019-07-19 16:24:15 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

"/bin/node" "/home/geny/Testing/run.sh" This works. Node is installed in /bin and there is only a file named "node" 21,

2019-07-19 16:22:53 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

"/bin/node" "/home/geny/Testing/run.sh" This works. Node is installed in /bin and there is only a file named "node" 21,3

2019-07-19 16:05:00 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Ok, erAck, testdata.dat contain the running date and hour. So Shell works, but I can't know why the node command doesn't

2019-07-19 16:04:23 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

I tried to add /home, but the result is always no execution. I added the full path (bin/node), but no results. In the ko

2019-07-19 16:03:22 +0200 Resposta comentada [Solved] Run bash script in BASIC macro

Ok, erAck, testdata.dat contain the running date and hour. So Shell works, but I can't know why the node command doesn't

2019-07-19 15:54:27 +0200 Pergunta comentada [Solved] Run bash script in BASIC macro

I tried to add /home, but the result is always no execution.

2019-07-19 15:20:19 +0200 Medalha recebida  Pergunta popular (fonte)
2019-07-18 18:28:52 +0200 Pergunta editada [Solved] Run bash script in BASIC macro

Run bash script in BASIC macro Hello, I'm a novice in Basic macro language. I can't run a bash script from a macro on Ma

2019-07-18 18:24:00 +0200 Pergunta editada [Solved] Run bash script in BASIC macro

Run bash script in BASIC macro Hello, I'm a novice in Basic macro language. I can't run a bash script from a macro on Ma

2019-07-18 18:21:59 +0200 Pergunta editada [Solved] Run bash script in BASIC macro

Run bash script in BASIC macro Hello, I'm a novice in Basic macro language. I can't run a bash script from a macro. The

2019-07-18 18:19:36 +0200 Pergunta editada [Solved] Run bash script in BASIC macro

Run bash script in BASIC macro Hello, I'm a novice in Basic macro language. I can't run a bash script from a macro. The

2019-07-18 18:19:36 +0200 Medalha recebida  Editor (fonte)
2019-07-18 18:18:46 +0200 Pergunta editada [Solved] Run bash script in BASIC macro

Run bash script in BASIC macro Hello, I'm a novice in Basic macro language. I can't run a bash script from a macro. The

2019-07-18 18:13:27 +0200 Perguntou [Solved] Run bash script in BASIC macro

Run bash script in BASIC macro Hello, I'm a novice in Basic macro language. I can't run a bash script from a macro. The