All Questions
5,566
questions
-2
votes
0
answers
21
views
How to get current directory after subprocess called?
I tried to create a python shell like bash,which can run in windows/Mac/linux.How to get current directory after subprocess called?
1
vote
1
answer
49
views
How to write a REGEXP_EXTRACT expression in Google Cloud Logging config json?
I am trying to extract the value at the end of this log:
Chat request completed in 3.818780105999849
This is a log saved in Google Cloud Logging and the message is written in the textPayload field. I ...
0
votes
1
answer
31
views
Issue with ANSI Escape Codes in Output When Running Shell Script via Python Subprocess
I have a bioinformatics pipeline that builds and runs .sh files in Python. I run the .sh through a subprocess module so I can use parallel computing.
This worked about 6 months ago, but now has ...
1
vote
2
answers
65
views
How to stream the interactive shell of a remote program to stdout of a running c++ program that launched the remote program (using BSUB -I)
I have a C++ program (say, process P1) which, in its course of execution, spawns a new process P2 on a remote machine using a launcher like LSF. P2 has an interactive shell (could be python). I want ...
0
votes
1
answer
51
views
How to make a script to automate taking the GET data from my wordpress site and POST to another server
I have this problem and I'm a newbie of REST API world. I have a Wordpress site in which I sell CD Albums, and I have to take every orders of the day and send some specific data (like the bardcode/ean,...
0
votes
1
answer
28
views
Creating a windows script using nssm
I have a python script that continuosuly runs and sends data via socket to a server. Now i want to create a service of that script exe that users donwload the script runs as a backgroung service ...
0
votes
1
answer
64
views
Running Custom C over ssh with paramiko [duplicate]
I've been trying to automatically execute some compiled C code over an SSH session. However, I have a big issue; my C code requires user input, and therefore I need to be able to catch those inputs ...
0
votes
1
answer
19
views
cron job to trigger something on a remote webserver
I have a webserver with ssh access and the possibility to enter a cron job there.
I have another second webserver, where I just can create web pages to do some work (via php) when they are called from ...
1
vote
1
answer
53
views
Installing pluggy from .tar.gz file with version 1.4.0, but gets 0.0.0 version
I'm currently trying to create a virtual environment using the *.tar.gz files from Pypi, and when I install pluggy with the following command, I get the wrong version installed.
The command :
$ pip ...
0
votes
1
answer
29
views
macbook terminal tab complete python module
On my old MacBookPro, I was able to tab-complete python modules on Terminal...
but now, as soon as theres a "dot" in the path, Terminal can no longer tab-complete
(so basically only tab-...
0
votes
0
answers
67
views
Getting a bunch of errors trying to install ESP-IDF v4.4.2 on Ubuntu 23.10
Espressif's instructions for installing the IDF appear to be missing some steps or perhaps it doesn't work on Ubuntu 23.10.
https://docs.espressif.com/projects/esp-idf/en/v4.4.2/esp32/get-started/...
1
vote
1
answer
48
views
How to use variable inside single quotation and placeholder in Snakemake shell
Here is a simplied rule for my problem
rule test:
output:
output_tex = expand("TPA_{region}.tex", region = [0,1]),
shell:
"""
for((i=0;i<2;i+...
-1
votes
3
answers
76
views
create a linux shell alias from a python script
I want to write a python script, that sets some shell aliases, that can be executed after running the python script.
I have tried the following approaches:
import subprocess
command: str = 'alias ...
0
votes
0
answers
61
views
running bash command through python script
i have a problem with running bash command through python script. my task is that i have to find a minimum possible woring combination of "instrumentations" and "within":
...
0
votes
0
answers
46
views
Using Python Watchdog to listen to Sharepoint file
Is it possible to use watchdog to accurately listen to a sharepoint file and do operations based on the events there?
Right now, when a new file is added via Teams and synced to the Sharepoint file, ...