Category "exec"

running exec inside a function when calling a module

I'm trying to assign a module's attribute to a variable using exec inside a function. color is a str like: 'jet', 'seismic', 'nipy_spectral', or something else.

Open (and run) a new Python file by a Python file

I need to run a second python file (2) using a first Python file (1) and I need that the first file continue to be runned. For example: I have the file A.py and

How to break used base64 code with exec in python

How to break used base64 code with exec in python import base64 exec(base64.b64encode('I0NvZGVkIGJ5IGNhbnBvbGF0Z2==')

python - SyntaxError: unexpected character after line continuation character

I made this very simple one line code that is only supposed to start Hearthstone, I get the error "SyntaxError: unexpected character after line continuation ch

python - SyntaxError: unexpected character after line continuation character

I made this very simple one line code that is only supposed to start Hearthstone, I get the error "SyntaxError: unexpected character after line continuation ch

find -exec - suppress errors only for find, but not for executed command

When running the find command, it may output "No such file or directory" errors. As answered to the find - suppress "No such file or directory" errors question

Python: For loops print only last element of a list

I am using a shared webspace and I can't install the dotenv libiary for php, but I can use the dotenv libiary for python to call enviorment variables from outsi

Azure Synapse insert result of exec into a table

Is there a way to insert into temp table result dataset from exec (no matter call of the procedure or execute dynamic SQL) in Azure Synapse Analytics? I didn't

virtctl works when executed via command line but not from php exec()

I am trying to run kubectl virt commands to manage my virtual machine via PHP. First, I log in to my server with phpseclib with the following code: $ssh = new S

How to convert a string to a runnable (unevaluated) function in Python

I have a code creating a string representing vars from my script: "((((x) * (320)) + ((y) * (270))) + ((z) * (400))) + ((w) * (500))" My goal is to store (not

Load and execute a full python script from a raw link?

I'm facing some problems trying to load a full python script from my pastebin/github pages. I followed this link, trying to convert the raw into a temp file and

How to execute an external program from within Node.js?

Is it possible to execute an external program from within node.js? Is there an equivalent to Python's os.system() or any library that adds this functionality?

Regex returning a value in IE, 'undefined' in Firefox and Safari/Chrome

Have a regex: .*? (rule1|rule2) (?:(rule1|rule2)|[^}])* (It's designed to parse CSS files, and the 'rules' are generated by JS.) When I try this in IE, all

find: missing argument to -exec

I was helped out today with a command, but it doesn't seem to be working. This is the command: find /home/me/download/ -type f -name "*.rm" -exec ffmpeg -i {}