Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~590 People Reached
Favorite Forums
Favorite Tags
Member Avatar for elhallouf

Hey you all I have a simple question : How do we call a shell script from a python script ? (Windows) I tried this : [CODE]import os os.system('sh C:\temp\script.sh')[/CODE] and this : [CODE]import subprocess subprocess.call("C:\temp\script.sh",shell=True)[/CODE] I played with the sh, adding it, removing it, adding .exe I played with …

Member Avatar for jlm699
0
114
Member Avatar for elhallouf

hey all. I am trying to assign unique IDs to a list of strings I get from a file Let's say my list (list.txt) is: [CODE] Shoes from Italy 1 Shirts made in Japan Shoes from Italy 2 Shirts made in France Boots made in United Kingdom Socks [/CODE] I …

Member Avatar for slate
0
239
Member Avatar for elhallouf

Hey you all I am starting with python (more familiar with shell in general) I am trying to write a script that replaces a column in a text file with numbers (or IDs) from an other file. Let me rephrase it : I have 2 files: ITEMS.txt and IDs.txt Items.txt: …

Member Avatar for elhallouf
0
157
Member Avatar for elhallouf

hey all I am trying to write a pogram with arguments and options I want to call it this way: [CODE] python myScript.py -c -f 'C:/Temp/my_file.txt' [/CODE] OR [CODE] python myScript.py -u -f 'C:/Temp/my_file.txt' [/CODE] where [-f filename] is mandatory and exactly one of -c or -u should be there …

Member Avatar for woooee
0
80