sarfrazashfaq
0
Newbie Poster
Recommended Answers
Jump to PostOne solution would be putenv.
On linux:
abc.py:import os uname="Some uname value" os.putenv("UNAME",uname) os.system("./test.sh")
test.sh:
echo $UNAME
Jump to PostOther solutions:
- communication file
- os.environ
- database
- parsing .py file and getting out the variable from the batch file
All 8 Replies
slate
241
Posting Whiz in Training
slate
241
Posting Whiz in Training
slate
241
Posting Whiz in Training
sarfrazashfaq
0
Newbie Poster
TrustyTony
888
pyMod
Team Colleague
Featured Poster
sarfrazashfaq
0
Newbie Poster
slate
241
Posting Whiz in Training
jaakdentrekhaak
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.