All Questions
34 questions
2
votes
1
answer
168
views
How to run python script on login
I am attempting to load a python script that launches a Firefox Geckodriver under Selenium whenever a specific kiosk user logs in to the GUI.
I've tried launching this via .profile, however ...
0
votes
2
answers
149
views
Cron, python and saving to a file
I've got a veeery simple script written in python that tests my internet connection na saves parsed data to a json file:
#!/usr/bin/python3
import subprocess, json, os
from datetime import datetime
# ...
-2
votes
1
answer
43
views
linux + network scanner tool that discover Linux rhel machine
we have network lab range from 18.2.1.1 until 18.7.252.253 , and we want to capture only the Linux RHEL machines with version 7.x ( /etc/redhat-release ) , ( we have around 2870 machines and only 390 ...
0
votes
1
answer
102
views
Is it possible to create such a tool that allows to save a being read text from a PDF reader into a string for handling this text afterwards?
The Linux Mint has a tool for PDF reading that is called the "Xreader" and installed by default together with the operation system installation.
Is it possible to create such a tool that ...
1
vote
0
answers
39
views
Runnig python window app on linux (Fedora) without gdm
I have a small project, the project is running python (windows application) as below.On linux Fedora without using gdm,Gdm must be disabled. Any Idea please?
What library I have to download ?
# ...
0
votes
0
answers
922
views
Systemd service working on one server but not on the other
My service looks like this:
[Unit]
Description=Run Forever
[Service]
User=root
WorkingDirectory=/home/elbrus/perp
ExecStart=/bin/bash -c 'python3 perpetual.py'
Restart=always
[Install]
WantedBy=...
1
vote
1
answer
325
views
How can I create a relative abundance table?
I'm trying to create a relative abundance table but am having some problems. I managed to do it for 1 column, but am struggling to transform the entire table.
The tables are always .tsv format and ...
2
votes
3
answers
463
views
Convert mm to hh:mm
I am using awk to get all of the 4th comma-delimited fields, which is a duration in minutes. The required output is in the format of hh:mm, so I need to convert that from minutes.
"jone",&...
0
votes
1
answer
442
views
Combine multiple CSV files with Same Header into multiple group files
Hi I am looking for a fastest solution to process loads of csv files.
Situation:
I have multiple csv files in a single folder with different headers
I have already done pre-processing on them to ...
3
votes
1
answer
3k
views
How to validate a json to make sure each json object is valid? [closed]
I have a json as shown below where I have multiple json objects inside rootLevel. I need to validate my json to make sure each json object should follow this below rules:
Value in clientId, procId ...
3
votes
1
answer
873
views
pip off-line installation + what is the equivalent approach as yum repository with rpms but for .whl files
Dear friends and colleges
on our linux redhat servers we build yum repositories under /var/yum.repo.d
so yum actually get from this repositories the required rpm for installation
now we want to ...
0
votes
1
answer
5k
views
ImportError: No module named pymol
I run a python script, but it returns this error. I am working on an environment and I believe that I have to install the pymol module. I am not familiar with these things and I have no idea how to ...
-1
votes
1
answer
537
views
Repeat python command until x time has passed
I have the following problem, my python script due to some (known) reason crashes in the early running stages 99 out of 100 times. But as that program is not written by me I am not sure how to fix it. ...
1
vote
1
answer
7k
views
Use bash variable in python [duplicate]
How can I call use a variable in bash and use the same variable in python. There are two separate file .bash and .py
.bash file
while read -r x
do
printf "%s\n" ${x} "Found"
done < path/to/file....
0
votes
1
answer
2k
views
Pass bash variable into python file
I have a Python script that I want to pass a bash variable to.
bash.sh
while read -r db
do
Printf "%s\n" ${db} "Found"
done < path/to/file.txt
output: db1
db2
db3
file.txt
db1
...