csh

Problem with reading in parameters with special characters in Python

Problem with reading in parameters with special characters in Python Question: I have a scripts (a.py) reads in 2 parameters like this:- #!/usr/bin/env python import sys username = sys.argv[1] password = sys.argv[2] Problem is, when I call the script with some special characters:- a.py "Lionel" "my*password" It gives me this error:- /swdev/tools/python/current/linux64/bin/python: No match. Any …

Total answers: 3

Setting stacksize in a python script

Setting stacksize in a python script Question: I am converting a csh script to a python script. The script calls a memory-intensive executable which requires a very large stack, so the csh script sets the stacksize to unlimited: limit stacksize unlimited When I try to reproduce this script in python, I execute them in a …

Total answers: 4