Skip to content

Tag: python

Losing stdout data in python

I’m trying to make a python script which is going run a bash script on a remote machine via ssh and then parse its output. The bash script outputs lot of data (like 5 megabytes of text / 50k lines) in stdout and here is a problem – I’m getting all the data only in ~10% cases. In other 90%

CALL multiple procedures with python

I have a linux server and I would like to run a python script every day to run mysql procedures but I do not know how to run multiple procedures and put a condition if there is an error that it sends me an email with the description of the error. Here is my script with only one procedure: Thank

Invoke Python as Executable

I have a Python script, a simple Hello, World. I need to invoke it as I would an executable and take piped input: How do I generate the command python3 myprogram.py and handle the piped input? Answer If you’re on a *Nix system, you’ll need to follow 3 steps: Make sure your script has executable pe…

389 Directory server testing with lib389

I am testing 389 Directory server testing with lib389. I am following the bellow link. https://fedorapeople.org/~spichugi/html/guidelines.html#add-modify-and-delete-operations What is the meaning of “standalone” here? Answer Its the name of ldap server instance: