10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Im trying to update an informix database table for each occurance of a head_barcode in a file called mw within a for loop
please see below - cant get the syntax correct. any help please?
for a in `cat /tmp/mw`
do
sql image - << STOP > /dev/null 2>&1
update doc_table set status =... (4 Replies)
Discussion started by: worky
4 Replies
2. Shell Programming and Scripting
I have this code that gives this error on Linux and will be grateful if you can help
import rrdtool
try:
ret_asd = rrdtool.update(myfile.rrd,'N:%s:%s' %(metric1, metric2));
except rrdtool.error, e:
print e
When i run the above i get the below error
except... (1 Reply)
Discussion started by: kaf3773
1 Replies
3. Shell Programming and Scripting
Hello all,
I would like to unzip some files with a for-loop.
Is there anyone who could tell me how I should do this - in a correct way?
for file in $(ls); do echo gzip -d < $file | tar xf -; done
The problem is the pipe - I believe. But how could I do it? I need it for the command... (4 Replies)
Discussion started by: API
4 Replies
4. Shell Programming and Scripting
Hello all,
Not sure if this question has been answered already.
I have some xml Element variable as below:
child19 = core_elem_dcache.find('stat')
child20 = core_elem_dcache.find('stat')
child21 = core_elem_dcache.find('stat')
child22 = core_elem_dcache.find('stat'Next I... (2 Replies)
Discussion started by: Zam_1234
2 Replies
5. SuSE
Hello,
I have registered an SLES11SP1 server with my spacewalk server however when I perform a 'yum repolist', I do not see my spacewalk server as one of the available repositories. So when I perform yum update (any-package), it does not find an update available. HOwever within the Spacewalk GUI... (3 Replies)
Discussion started by: s ladd
3 Replies
6. Shell Programming and Scripting
Hi guys,
im having real difficulty getting my head around perl and rrdtool and was hoping someone could help
I want to run a perl script from cron which retrieves the data every 5 mins, creates .rrd's if not already created, and updates the DS from the reultsHash or $key, then creates the... (2 Replies)
Discussion started by: jeffersno1
2 Replies
7. Solaris
Hello
I reinstalled my OS today and after going through the registration the updatemanager pops up, as expected. The problem is all i get is an error message box that's completely blank.
The icon in the sytem tray is a blue question mark and when hovering over it, it says i'm not... (4 Replies)
Discussion started by: jpg.2009
4 Replies
8. UNIX for Advanced & Expert Users
Hi,
I have a oracle source with a field my_date =06/02/2009
I am trying to update the table to SYSDATE with a myscript.sql where I have
UPDATE table set my_date=to_DATE(SYSDATE,'MM/DD/YYYY');
Now I try to run it with myupdate.SH script where I have
sqlplus nolog @myscript.sql
... (4 Replies)
Discussion started by: RubinPat
4 Replies
9. UNIX for Advanced & Expert Users
Dear All,
I have writen a Pro*c program that does a data base select,insert,update statements and I have scheduled the program to run from crontab,
It is runing fine for the select insert and commit statement till it reaches the update statement , it throws the following error:
SQL On IPB... (2 Replies)
Discussion started by: alhallay
2 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
Till now i was able to do apt-get update. but today i started to the following error:
# apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory)
E: Unable to lock the list directory
#
Could any one let me know how to solve it.
... (1 Reply)
Discussion started by: gauri
1 Replies