Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: subok
  • Order by date
  1. subok

    Help with Java (data listing)

    Thanks mikrom for your help , I was able to solve it using Iterator. But now I am having error again after returning to the calling program. I am trying to assign the return value(List) of the called program but it is giving me this error. Error: Exception in thread "AWT-EventQueue-0"...
  2. subok

    Help with Java (data listing)

    Hi Need some help with my java program. I'm trying to write a java code related to bank transactions (e.g. payment) . My problem is that when a new transaction is entered the account is not updated after making for example payment. It seems problem with indexing (cannot be located or ..). Any...
  3. subok

    manipulate column string in a csv file

    Thanks for the tip. I was able to manage with sed. #Replace "T" with ',' in column 1 sed -i 's/T/,/1' subok.csv sed -i 's/+01:00,/,/1' subok.csv sed -i 's/ime/time/1' subok.csv #sort column 1 with column 2 sort -t\; -k 1 -k 2 subok.csv my only problem now, is to sort skipping the first row...
  4. subok

    manipulate column string in a csv file

    Hi, I've been struggling to write a simple script to manipulate a column in a large csv file but i can't get any further. Any help is greatly appreciated! csv file 2013-12-6T02:05:08+01:00,0,0,0,0,0,258,0,0,0,0,0,258,0,0,0,0,0,258,0,0,0,0,0,258,false...
  5. subok

    first time with Python

    Super!! Thanks a lot Feherke
  6. subok

    first time with Python

    Hi Feherke, sorry my bad. I did not know how to start earlier but i tried. what i have now, is i'm able to extract the data i want in the xml file but i'm stuck in formatting it the way i want. Thanks a lot for any help or advice. import xml.sax collection = [] class HandleCollection...
  7. subok

    first time with Python

    [tt]Hi, I trying to write a script in python to parse an xml file. The xml file contains, measurements taken every 5 minutes. I need a script to parse the xml file and convert it to a csv formatted text. Any help would highly appreciated : example input file, i need to parse and take the...
  8. subok

    python ssh and sudo remote commands

    Hi, I was wondering if somebody can help. I'm writing a python script to make a remote command but requires a sudo password. I got the following script but the password is not sendout it seems thanks in advance for any assistance import paramiko import SocketServer import socket import...
  9. subok

    Copy the latest file in multiple directory

    Thanks Annihilannic, the last feedback gave me hint, i forgot that my cvs is actually semi-colon separated. after changing in the split function /,/ with /;/... it worked!! Kr, Richard
  10. subok

    Copy the latest file in multiple directory

    Thanks. I have inserted your proposal accoring to my need but i'm getting to following error when running it. /** Use of uninitialized value in string eq at T:\script\test3.pl line 44, <FILE> line 98 Use of uninitialized value in string eq at T:\script\test3.pl line 45, <FILE> line 98 /** The...
  11. subok

    Copy the latest file in multiple directory

    Thanks Annihilannic, I modifed it a little a bit to adapt the according to my need and it is working perfectly now, below is code. But I have one more favor to ask, these copied file are in CSV format and the filenames can be any, I need to search a particular string in line. For example ...
  12. subok

    Need some help, no idea where to start

    The file is like this (i pasted the wrong one above) In the HEADER;allAssociationUtilizationData;10;V16SG; ;0;SCANNER...
  13. subok

    Copy the latest file in multiple directory

    Hi, My server is using active PERL i'm trying to adapt the proposed script but i'm stucked at line 23 The directory structure was also changed : T:\CFS\MP\Monday \Hour0 \Hour1 \Hour10 \Hour11 \Hour12 \Hour13 \Hour14 \Hour15 \Hour16 \Hour17 \Hour18...
  14. subok

    Copy the latest file in multiple directory

    Thanks. I reposted the thread in MS Powershell
  15. subok

    Need some help, no idea where to start

    Hi Feherke, I thought it would be more practical to open a new thread because the goal is different though the files to be process is the same. I'm also a bit desperate because i'm running out of time to deliver have the scripts running. my apologies. subok
  16. subok

    Need some help, no idea where to start

    I need to parse a 2 csv files copied to a directory every X minutes. Then calculate the ratio of the column "numOctetsReceived" and "numOctetsSent" Depending on the result ratio, i have to execute a ms-dos batch file (e.g. low.bat or high.bat) HEADER;UtilizationData;10;V16SG; ;0;SCANNER...
  17. subok

    finding the latest file in several sub-directory

    Hi, Any help to a newbie will greatly appreciated. I'm trying to write a script to check the 4 latest file in a directoty containing several subdirectories. d:\subok \10 \20 \30 \40 \50 New can come and stored in any of the sub-dir (10,20,...). Goal is to copy the 4 newest file to a new...
  18. subok

    Copy the latest file in multiple directory

    Hi, Any help to a newbie will greatly appreciated. I'm trying to write MS DOS batch file to check the 4 latest file in a directoty containing several subdirectories. d:\subok \10 \20 \30 \40 \50 New can come and stored in any of the sub-dir (10,20,...). Goal is to copy...
  19. subok

    need some help on perl

    Thanks Feherke
  20. subok

    need some help on perl

    Hi, I need small help on perl scripting I have files that is copied on a regular basis and i need to check the contents to calculate the ratio. depending on the result. ( e.g. .50) it will call another script low.pl ( e.g. .99) it will call another script high.pl The file is a csv file...

Part and Inventory Search

Back
Top