0
votes
5answers
40 views

bash script to replace spaces in html

I need a linux bash script that can replace the spaces in name="this is a test". example: <input name="this is a test" id="testing 1 2 3" /> would change to this: <input ...
0
votes
1answer
12 views

How do I coerce str to correct type for pygame.mixer (Python)?

I have some python code that works in windows with the following code: winsound.PlaySound(a_sound, winsound.SND_MEMORY) Of course, in linux this doesn't work. I've tried the following (using docs ...
0
votes
3answers
41 views

Python/Linux - unzip file while reading it

I have hundreds of CSV files zipped. This is great because they take very little space but when it is time to use them, I have to make some space on my HD and unzip them before I can process. I was ...
0
votes
1answer
25 views

Can I manually write an entery into journald using Python?

I'm trying to manually write an entry into journald from Python. Is there a way to do this? Thanks for any insights. -Paul
-5
votes
1answer
31 views

How to get gcc compiler version in python script on linux? [on hold]

i need to know the gcc compiler version in python script. How can i get gcc compiler version in python script on Linux?
0
votes
0answers
10 views

does children created using pexpect run even if we switch off the local machine?

I am trying to launch a job to a remote server. And to optimize the system, I want to disconnect the connection once I launch a job on the remote machine so that I can start launching the other job. ...
0
votes
1answer
23 views

subprocess in python not excecuting command

I have a bit of code that I am designing to take a file, perform the dos2unix command on it, then copy that file to a file called INPUT, and then run a command that boots a program. From my code the ...
2
votes
4answers
56 views

Finding login times in Linux

I am trying to figure out times of logins into my systems (basically systems boot). I am making use of last Unix command. However, it does not let me pull more than a certain number of entries. I ...
-3
votes
1answer
21 views

': [Errno 2] No such file or directoryile ' in Linux

-bash-3.2$ dir dispatch.cgi stats -bash-3.2$ ./dispatch.cgi ': [Errno 2] No such file or directoryile ' this is dispatch.cgi: #!/usr/local/bin/python2.7 import sys, os sys.path += ...
-3
votes
3answers
98 views

How to improve the computation speed of my shell script/program?

I have written a shell script to process my huge data files (each one having around 7000000 lines ~ a weeks data in a single file). Below is the sample of my data file (i.e., input file) structure: ...
1
vote
2answers
41 views

how to run a python program in linux crontab?

I have added the following line in contab 1 * * * * /usr/bin/python /home/prkumar/Desktop/python/sample.py my sample.py file text_file = open("sample.log", "a") text_file.write("Hi...") ...
-1
votes
0answers
14 views

Rcmd's for Linux hardware monitoring, online remote execution, & event logging to central DB [on hold]

I am looking for recommendations on a suite of Linux based applications to best manage my project. I have found many, but want to be sure I am taking the best approach for my project, using the least ...
0
votes
0answers
5 views

cross compiling python native C extensions with distutilscross, setup.py won't accept '-x' argument

I have a working cross compile of Python, however I've tried cross compiling the py-smbus extension from i2c-tools using distutilscross and can't get past the command line. The documentation ...
0
votes
1answer
12 views

nTop RRDalarm configuration

I have ntop v.5.0.1 (64 bit) [x86_64-2.6.32-5-amd64-linux-gnu] installed from sources on a Debian Wheezy system. I can't configure RRDalarm, when i go to "Tools / RRD Alarm / Configure Thresholds", I ...
3
votes
5answers
42 views

shell start / stop for python script

I have a simple python script i need to start and stop and i need to use a start.sh and stop.sh script to do it. I have start.sh: #!/bin/sh script='/path/to/my/script.py' echo 'starting $script ...

1 2 3 4 5 177
15 30 50 per page