Hello all,
Not sure if this question has been answered already.
I have some xml Element variable as below:
Next I want to change the values of these corresponding elements like below:
Now instead of setting setting the values manually for each element, I wanted to do a for loop for a range (10,100). But I am not sure how to update the "child" element dynamically.
I tried following:
which surely gave me error:
Kindly help.
Check your python documentation for the 'exec' function. if you can't use child[index] and have to use hard names, exec is your friend for creating on the fly code (normally you would not do this though.. but there are some cases...).
Hello,
Could anyone please help me with Assigning a value to variable and then updating the value in the original file
IFS='|'
while read -r Serial_ID JOB_NAME STATUS
do
if
then
echo "Perform Fuctions"
???Assign STATUS to COMPLETED and Update File???
done <File (7 Replies)
I attempted to update Python on my CentOS 5.6 VM and have encountered some issues after then. Initially yum wouldn't work, but I have resolved that.
However, now I am unable to access the Network Configuration section under setup.
When I do select this option I see this at the command line:
... (2 Replies)
Hi,
I would like to know wheather it is possible to install python 2.6 on RedHat Ent Linux 5 (update8) using rpms?
I have checked by default Python 2.4 is installed.
or wheather Redhat 6.0 needs to be installed for python 2.6? (1 Reply)
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Hi. I have a basic script in python that outputs like this..
$ ./test.py
1%
2%
3%
4%
5%
6%
7%
8%
9%
10%
...
But how can I make it so the output stays in 1 line?
So it would look something like this..
$ ./test.py
10% (1 Reply)
Hi suppose in python I have a list(or array, or tuple, not sure the difference)
How do I loop inside the size of array.
The pseudo code is:
a=
for i = 1 to dim(a)
print a
end
How to find the dimension in python?
Also, anyone has a handbook to suggest so I can borrow from library (1 Reply)
hi all,
i am experiencing an error which i think an incorrect syntax for the where clause passing a variable was given. under is my code.
sqlplus -s ${USERNAME}/${PASSWORD}@${SID} << END1 >> $LOGFILE
whenever sqlerror exit
set serveroutput on size 1000000
declare
l_rc ... (0 Replies)