ScriptManager icon indicating copy to clipboard operation
ScriptManager copied to clipboard

Feature Request: Add option for command line parameters

Open NetworkJack2 opened this issue 4 years ago • 6 comments

I would like to be able to run scripts with command line parameters. This would be a big help. Especially if they can be copypasted.

NetworkJack2 avatar Feb 21 '21 17:02 NetworkJack2

ommand line parameters. This would be a big help. Especially

I really don't understand. Can you tell me more? Probably, an example? Thanks.

sunilpaulmathew avatar Feb 22 '21 09:02 sunilpaulmathew

so, instead of just running

#!/usr/bin/bash

echo hello world $1 $2 $3

./shell.sh Hello World

./shell.sh item1 item2 item3 Hello World item1 item2 item3

see?

NetworkJack2 avatar Feb 22 '21 11:02 NetworkJack2

Like this:

  1. Creating (can add variables): 1
  2. When run (ask for variables): 2
  3. Writing the variables: ImgSnap - 15-04-21 ~ 15 02 25
  4. After running: ImgSnap - 15-04-21 ~ 15 02 33

Mitezuss avatar Apr 15 '21 18:04 Mitezuss

That works

NetworkJack2 avatar Apr 15 '21 20:04 NetworkJack2

@Mitezuss Atm, I really don't have any idea to implement it. Also, even I managed to do it, how app handles it when user set such a script on boot?

sunilpaulmathew avatar Apr 16 '21 23:04 sunilpaulmathew

add the variables to the command line when you execute the script in order?

NetworkJack2 avatar Apr 17 '21 01:04 NetworkJack2