Tagged Questions
3
votes
2answers
52 views
How can I run a python script with out the prompt “Run in terminal, Display, cancel, Run”
I added #!/usr/bin/env python to the script and chmod +x in terminal, but on double clicking it still asks for these 4 options.
I want it to automatically open in terminal. Is it possible? I'm using ...
0
votes
1answer
78 views
How to run a shell script without terminal
I have a shell command that executes a command and sends it through pipe to a python file. The python file does various checks on it and then starts processes with parameters using subprocess.Popen. ...
2
votes
1answer
154 views
How do I run a python script with Wine?
I'm using Calibre to manage my ebooks and I'm trying to install a plugin that will allow me to manage library books that I get through Adobe Digital Editions via Wine. I've got everything installed, ...
1
vote
1answer
112 views
Can I write a python script that will automatically load a terminal as sudo?
I use sudo a lot and I am constantly having to restart my terminal (development of programs that froze usually) and it's a pain in the butt to constantly put in the sudo command and then my password. ...
1
vote
1answer
74 views
How to keep X-Server running via 'ssh -Y' after closing shell?
my name is Chris and i have trouble to run a Python-Script on a Server.
I try to run a Python Script, that makes use of the Python module wx, on a Server.
Therefor i open a shell connect to the ...
1
vote
1answer
130 views
Run python script on reboot (boot)
I am trying to run a script once the server reboots. So, how can I change it. My script needs only one file to open and it opens in terminal. I read something about changing configurations or ...
45
votes
3answers
1k views
Is #!/bin/sh read by the interpreter?
In bash or sh, I guess anything which starts with # is a comment.
But in bash scripts we write:
#!/bin/bash
And in Python scripts, there is:
#!/bin/python
Does this mean that # by itself is a ...
0
votes
0answers
68 views
SciDAVIs doesn't want to support Python scripts in Ubuntu 11.10
I'm having a problem with SciDAVIs in Ubuntu 11.10. I'm currently doing some work for another person, and I developed an small Python script to automate plotting in SciDAVIs. I did it all in my Ubuntu ...
0
votes
1answer
166 views
How to programatically fetch the download status of Google Chrome?
How would I go about determining if Google Chrome is downloading something, and getting the "percent-done" value of that download, from the terminal using a Python, Perl, or Bash script?
2
votes
2answers
944 views
How do I run a script when a Bluetooth device connects?
I'd like to start my music player (Clementine) when my bluetooth headset connects to my computer. How do I detect the bluetooth device connecting so I can run a script to start the player?
1
vote
1answer
92 views
Fix Nautilus URIs in a Python script
I have a very basic Python script I wrote mostly for learning purposes.
It opens a terminal in the current folder. However, I can't get it to work in folders with accented characters in the URI ...
3
votes
2answers
854 views
Python Compared to BASH
I've been studying bash for the past three weeks or so, and it is very easy to learn since it is basically just command line inputs. I've decided to now move onto python but I've been lost the whole ...
2
votes
2answers
368 views
How to run interactive python script after boot as user USER
I want to run my system configuration script (written in python) after boot. System should ask for password for user USER and run my script. After that system should reboot, eventually run gui.
I ...
24
votes
5answers
2k views
How do I create a deb package for a single python script?
I have a single python script that I want to distribute as a deb package. It is a indicator which shows local date in Unity panel. I did follow create a .deb Package from scripts or binaries but I ...
5
votes
2answers
1k views
Python script won't write data when ran from cron
When I run a python script in a terminal it runs as expected; downloads file and saves it in the desired spot.
sudo python script.py
I've added the python script to the root crontab, but then ...
0
votes
1answer
467 views
Create a batch rename srcipt in python?
Firstly, this question was made as a follow up of my previous question: How to batch rename files with "variables"?. I'm just restating it considering Sergey's recommendations.
I use xmbc ...
0
votes
1answer
497 views
Change/set working directory of scripts executed from file manager window
Whenever I execute a script by clicking on it in a file manager window it gets run with my home directory as it's working directory, not directory that has the script within it where I'm clicking.
...
1
vote
1answer
364 views
Lua or Ruby (or something else?) for scripting?
I'm making a program in Java and I'm choosing a language for scripting.
I'm aiming for speed and for being easy to learn/code for a java program.
(So what I mean by Ruby and Lua is JRuby or LuaJ or ...
1
vote
1answer
187 views
Scripts used by `jockey-common`
Is it possible to make a script that basically does the same thing as jockey-common? i.e. An script to find any hardware that requires proprietary drivers and install them.
EDIT As Oli mentioned, the ...
9
votes
1answer
4k views
What language(s) can I use in LibreOffice for macro scripting?
Not finding any info online; I hope somebody here knows. It was Python in OpenOffice; is it still Python? Or are they moving to gasp VBA?
1
vote
1answer
891 views
Pipe error with bash script called from python
I'm trying to run a shell script inside some python code, but I keep getting an error message.
Python script (test.py):
import os
f = os.popen('/home/test/Downloads/record.sh')
f.close()
...
12
votes
2answers
1k views
How can I write Nautilus scripts in Python?
I want to write a Nautilus script in Python. Is that possible? If it is possible, how can I do that?
5
votes
2answers
2k views
What is the default character encoding?
I don't myself know how deep this question actually goes (for example, for all I know there could be several, depending on my task).
Particularly, I am interested in what kinds of strings are used to ...
