Skip to main content

All Questions

Tagged with
-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?
Joe's user avatar
  • 58
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 ...
four_leaves's user avatar
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 ...
lstbl's user avatar
  • 537
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 ...
bdd's user avatar
  • 53
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,...
CuloAtomico's user avatar
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 ...
Shahzaib Nasir's user avatar
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 ...
Guillaume Bnb's user avatar
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 ...
datafiddler's user avatar
  • 1,825
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 ...
Doppler's user avatar
  • 26
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-...
sliq's user avatar
  • 1
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/...
Griffin's user avatar
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+...
RedQuark's user avatar
-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 ...
cogimi's user avatar
  • 117
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": ...
Maria Osipova's user avatar
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, ...
bbelli's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
372