I was able to create a custom launcher with a command line entry and it worked fine.
I want to add a second command to the first, do I add && between the commands? If not then how do you string them into one line?
Also it is a couple sudo commands that I want to string, is there a way to enter the password automatically so I don't have to do it manually each time?
stringing commands together
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
stringing commands together
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: stringing commands together
you can add && in a launcher, but a better idea is to create a simple custom script with all the commands inside, and create a launcher for that.
Re: stringing commands together
How do I create a simple custom script file? Gedit? What should the extension be? How do I make the file executable.
Also is there a way to enter the password automatically, they are sudo commands.
Also is there a way to enter the password automatically, they are sudo commands.
Last edited by Sleven on Wed Jan 01, 2014 12:36 pm, edited 2 times in total.
Re: stringing commands together
create another thread for bypassing password.
to create a custom command file, open gedit, write down your commands, save the file with any name you want. then open a terminal and run this: then you can run it any time.
to create a custom command file, open gedit, write down your commands, save the file with any name you want. then open a terminal and run this:
Code: Select all
chmod +x [path to your file]
Re: stringing commands together
Edit: I was able to create the script file and it runs fine on it own. The custom launcher throws an error when I try and run
it there. I used the format ./filename but it throws an error. What am I doing wrong?
it there. I used the format ./filename but it throws an error. What am I doing wrong?
Re: stringing commands together
I figured out why the custom launcher didn't work, didn't have the path in the command line, seems to work fine now.
Is there a way to pre-enter the password so it doesn't have to ask me each time?
Is there a way to pre-enter the password so it doesn't have to ask me each time?
Re: stringing commands together
http://askubuntu.com/questions/159007/h ... a-passwordSleven wrote:I figured out why the custom launcher didn't work, didn't have the path in the command line, seems to work fine now.
Is there a way to pre-enter the password so it doesn't have to ask me each time?
Re: stringing commands together
Thanks perham for all the help, seems to be working just as I want it to now thanks to you.
Re: stringing commands together
glad it works. happy new year.Sleven wrote:Thanks perham for all the help, seems to be working just as I want it to now thanks to you.