I want to call a python script script.py from the terminal by simply typing script. Is this possible? If so, how?
I know I can avoid typing python script.py by adding #!/usr/bin/env python to the top of the script, but I still have to add the suffix .py in order to run the script.
This just started happening, I go to right click the home folder icon to get to my video folder, and it just says
Open new window
Home Folder
Unlock from launcher
But when I click on the home folder it shows the quick list. I don't know why it's not working.
Hello
I want to make a launcher, which I created with
Code:
gnome-desktop-item-edit Desktop --create-new
for my Bash script.
The script works perfectly as long as I start it in the terminal using
Code:
./scriptname
but if I want to start it using my launcher I get something like
Code:
ideasUnvToFoam command not found
I'm using OpenFOAM 2.1.0 on Ubuntu 12.10 and allready edit
I've just updated ubuntu to 11.10 a couple of days ago. When i was experimenting with the launcher, i removed a terminal icon, which was running and un-clicked "keep in launcher".
I am writing a bash script that runs each of its arguments as a command. This works for commands in my PATH, but not for aliases. I can directly call an alias in the script, but I can't call an alias that has been passed as an argument.
The problem (I assume) is that aliases are expanded before variables.
I've written a simple bash script for deleting some temporary files that match a certain pattern:
#!/bin/bash
cd ~/some_project/some_dir
rm */*.xml
I've saved it as 'script', chmodded it to +x via terminal. Now when I double click this file, I get the option to Run it in terminal or display its output.
I'm using the linux 'script' command http://www.linuxcommand.org/man_pages/script1.html to log all input and output in an interactive bash script.
At the moment I have to call the script command, then run my bash script, then exit.
I want to run the script and exit commands from within the actual bash script itself.
I wanted to create some custom quicklist items, so I used Ubuntu Tweak to do that.. but after doing that, the default quicklist items of the home icon (Pictures, Downloads, Music, Documents) in launcher disappeared. Now, when I restart the system, those default items in home icon's quicklist re-appear but they disappear again when i use them once..
hi,
I would like to ask about using gnome-terminal command, I had a script that will run my VBOX VM in headless and i want to display the output(STDOUT) on the gnome-terminal window. The purpose that i want to display the STDOUT of the script cause i will used it or create a desktop shortcut for one click start all and want a visual display of the script running all the VM's for confirmation.