linuxnoobe Posted January 5, 2009 Share Posted January 5, 2009 I am trying to create a shortcut that I will keep on a thumb drive while running Backtrack 3. What I want it to do is open a Shell-Konsole and run a command. I have created a shortcut that will open a shell that works from the thumb drive but I don’t know how to make it execute a command. So basically I want a shortcut on a thumb drive that I click and a shell opens and runs a command in one double click. An example would be, double click on shortcut, shell opens and runs airmon-ng stop ath0. Help would be appreciated. Quote Link to comment Share on other sites More sharing options...
Sparda Posted January 5, 2009 Share Posted January 5, 2009 #!/bin/bash xterm -e <command here> Quote Link to comment Share on other sites More sharing options...
h3%5kr3w Posted January 6, 2009 Share Posted January 6, 2009 this is true, but dont forget, if you run in to trouble trying to do this (as i did) just create an empty file on the thumb drive, insert the commands in there, chmod the file to executable, and global, and then just point the shortcut to the file. (had to do that for sauerbraten once) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.