Re: [CentOS] 5.4 DVD
Here has all the Direct Link to the different version of Centos 5.4 http://www.linuxiso.com.ar/centos/ Regards, Ale 2009/10/26 Ralph Angenendt > Am 23.10.09 19:56, schrieb Ian Murray: > > > >> The dates are likely based on when the ISO was actually created. > Therefore, if the ISO was generated on Oct. 1st and no issues were found > with it in QA, then the date you are seeing on the mirrors is correct. The > ISOs are based on the original 5.4 tree and don't include updates that Red > Hat released after the initial release of RHEL 5.4. > > > > As far as I remember, some subsequent RH updates are rolled-into the > CentOS release. Someone more familiar with the build process may clarify > that. > > No, they aren't. This time we pushed the "0day" updates from Red Hat to > the 5.3 tree (new kernel and a few other things). > > The ISOs have the same software in the same versions as upstrem has, > we're not slipstreaming anything into there. > > Ralph > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Bacula Instalation - Dependencies problems
Hi list, I try to install bacula-client-3.0.1-3.el5.pp.x86_64.rpm but have problems with some Dependencies, please if anyone know how fix that I'll apreciate the info. yum install bacula-client-3.0.1-3.el5.pp.x86_64.rpm Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: www.gtlib.gatech.edu * rpmforge: ftp-stud.fht-esslingen.de * base: centos.pop.com.br * updates: mirror.cs.vt.edu * addons: centos.pop.com.br * extras: centos.pop.com.br Setting up Install Process Parsing package install arguments Examining bacula-client-3.0.1-3.el5.pp.x86_64.rpm: bacula-client-3.0.1-3.el5.pp.x86_64 Marking bacula-client-3.0.1-3.el5.pp.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package bacula-client.x86_64 0:3.0.1-3.el5.pp set to be updated --> Processing Dependency: bacula = 3.0.1-3.el5.pp for package: bacula-client --> Processing Dependency: libbac.so.1()(64bit) for package: bacula-client --> Processing Dependency: libbaccfg.so.1()(64bit) for package: bacula-client --> Processing Dependency: libbacfind.so.1()(64bit) for package: bacula-client --> Processing Dependency: libbacpy.so.1()(64bit) for package: bacula-client --> Finished Dependency Resolution bacula-client-3.0.1-3.el5.pp.x86_64 from bacula-client-3.0.1-3.el5.pp.x86_64.rpm has depsolving problems --> Missing Dependency: libbac.so.1()(64bit) is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) bacula-client-3.0.1-3.el5.pp.x86_64 from bacula-client-3.0.1-3.el5.pp.x86_64.rpm has depsolving problems --> Missing Dependency: bacula = 3.0.1-3.el5.pp is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) bacula-client-3.0.1-3.el5.pp.x86_64 from bacula-client-3.0.1-3.el5.pp.x86_64.rpm has depsolving problems --> Missing Dependency: libbaccfg.so.1()(64bit) is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) bacula-client-3.0.1-3.el5.pp.x86_64 from bacula-client-3.0.1-3.el5.pp.x86_64.rpm has depsolving problems --> Missing Dependency: libbacfind.so.1()(64bit) is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) bacula-client-3.0.1-3.el5.pp.x86_64 from bacula-client-3.0.1-3.el5.pp.x86_64.rpm has depsolving problems --> Missing Dependency: libbacpy.so.1()(64bit) is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) Error: Missing Dependency: libbac.so.1()(64bit) is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) Error: Missing Dependency: libbacfind.so.1()(64bit) is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) Error: Missing Dependency: libbaccfg.so.1()(64bit) is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) Error: Missing Dependency: bacula = 3.0.1-3.el5.pp is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) Error: Missing Dependency: libbacpy.so.1()(64bit) is needed by package bacula-client-3.0.1-3.el5.pp.x86_64 (bacula-client-3.0.1-3.el5.pp.x86_64.rpm) Best Regards Alejandro >From Argentina ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Bacula Instalation - Dependencies problems
JD, Thanks... The FSCHWARZ rpm work excellent! You use some GUI for make the admin of the Jobs? Regards, Alejandro 2009/7/20 John Doe : > > From: Alejandro >> I try to install bacula-client-3.0.1-3.el5.pp.x86_64.rpm but have >> problems with some Dependencies, please if anyone know how fix that >> I'll apreciate the info. > > > I personaly used the fschwarz rpms from > http://sourceforge.net/projects/bacula/files/ > > JD > > > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] nsswitch.conf, ldap, local groups problem
Mark, Probe with this line: authconfig --enablelocauthorize --updateall Regards, Alejandro www.linuxiso.com.ar Argentina 2008/8/27 Mark Hennessy <[EMAIL PROTECTED]> > Quoting Craig White <[EMAIL PROTECTED]>: > > On Wed, 2008-08-27 at 20:41 -0400, Mark Hennessy wrote: >> >>> Quoting Craig White <[EMAIL PROTECTED]>: >>> >>> > On Wed, 2008-08-27 at 17:56 -0400, Mark Hennessy wrote: >>> >> Quoting Craig White <[EMAIL PROTECTED]>: >>> > >>> >> > well, it hardly makes any sense to use ldap for user accounts and >>> start >>> >> > up with networking off but I would recommend that you adhere to the >>> >> > advice at the top of the file and run 'authconfig' or >>> >> > 'system-config-authentication', make sure the settings are correct >>> >> > (including checking the box for local authentication is sufficient) >>> so >>> >> > that it configures not only /etc/pam.d/system-auth and nsswitch.conf >>> >> >>> >> Yes, I agree, it makes no sense to operate a machine with ldap >>> >> accounts if it has no network connection, but at least one should be >>> >> able to log in as root. To clarify, here's the problem: >>> >> I have a machine. In normal operation, the network connection is >>> >> non-functional and LDAP accounts are usable and everyone does their >>> >> thing over ssh. If the network connection craps out, I can get into >>> >> the machine via serial console and try to find out what's going on, >>> >> perhaps switch to a different network connection, whatever. If I >>> >> can't log in as root, my only recourse is to powercycle the machine >>> >> and go into single-user mode. Now, multiply that by 100. This is why >>> >> I need to get this working. >>> > >>> > sounds like you're trying to fix a symptom, not the problem. >>> > >>> > anyway, did you run authconfig/system-config-authentication ? >>> >>> Yes, I did in fact run it. >>> here are the results: >>> authconfig --enableldap --enableldapauth --ldapserver=ldap.example.com >>> --enableldaptls >>> --ldaploadcacert=file:///etc/openldap/cacerts/cacert.pem --test >>> >>> caching is enabled >>> nss_files is always enabled >>> nss_compat is enabled >>> nss_db is disabled >>> nss_hesiod is disabled >>> hesiod LHS = "" >>> hesiod RHS = "" >>> nss_ldap is enabled >>> LDAP+TLS is enabled >>> LDAP server = "ldap.example.com" >>> LDAP base DN = "dc=example,dc=com" >>> nss_nis is disabled >>> NIS server = "" >>> NIS domain = "" >>> nss_nisplus is disabled >>> nss_winbind is disabled >>> SMB workgroup = "WORKGROUP" >>> SMB servers = "" >>> SMB security = "user" >>> SMB realm = "" >>> Winbind template shell = "/bin/false" >>> SMB idmap uid = "blah-blah" >>> SMB idmap gid = "blah-blah" >>> nss_wins is disabled >>> pam_unix is always enabled >>> shadow passwords are enabled >>> md5 passwords are enabled >>> pam_krb5 is disabled >>> krb5 realm = "EXAMPLE.COM" >>> krb5 realm via dns is disabled >>> krb5 kdc = "kerberos.example.com:88" >>> krb5 kdc via dns is disabled >>> krb5 admin server = "kerberos.example.com:749" >>> pam_ldap is enabled >>> >>> LDAP+TLS is enabled >>> LDAP server = "ldap.example.com" >>> LDAP base DN = "dc=example,dc=com" >>> pam_pkcs11 is disabled >>> >>> use only smartcard for login is disabled >>> smartcard module = "coolkey" >>> smartcard removal action = "Ignore" >>> pam_smb_auth is disabled >>> SMB workgroup = "WORKGROUP" >>> SMB servers = "" >>> pam_winbind is disabled >>> SMB workgroup = "WORKGROUP" >>> SMB servers = "" >>> SMB security = "user" >>> SMB realm = "" >>> pam_cracklib is enabled (try_first_pass retry=3 debug) >>> pam_passwdqc is disabled () >>> Always authorize local users is disabled () >>> Authenticate system accounts against network services is disabled >>> >>> These last two lines look interesting. >>> >> >> I would think that authenticate system accounts against network services >> is disabled would be the setting that you want but the other... >> >> always authorize local users should be enabled. >> >> Also, I'm assuming that you've swapped out dc=example,dc=com for the >> real entries and will put in the real entries when you actually run the >> command. >> > > Your assumption is valid, and, in this case, correct. > > After running that, I ran authconfig-tui and followed the prompts, > including making local login sufficient, and then performed the test. It > failed with the same issue, password accepted without claim of failure, no > shell, new login prompt. > > > >> Craig >> >> > > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] [OT] What is the best network monitoring tool?
Hi all, Currently I have a big question. What is the best OPEN SOURCE solution for monitoring multiple Host and Services, for example for using in a WebHosting Provider with 50 hosts or more. Currently, I'm using NAGIOS for more than 3 years, this is a incredible tool, but before upgrade to version 3, I have this existential question. Please fill free to recommend any soft, but with this option in mind. 1- Easy option to personalize any plug-in 2- Good Documentation 3- Support large platforms 4- Run over Linux Sorry for me English Regards Alejandro www.linuxiso.com.ar from Buenos Aires, Argentina ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [OT] What is the best network monitoring tool?
Nate, Thanks for your response. Currently I have a lot of services to monitoring for example: Databases : Oracle - Mysql - MSSql WebServers: SunWebServer - SunJavaAppServer - Apache Systems: Windows - Linux Networking: Cisco Switch - Lan Interfaces Currently I look these projects: Groundwork and Centreon ( http://www.centreon.com/), this two tools based in Nagios, but with statistical tools And other excellent tool is JFFNMS (http://www.jffnms.org/) Regards, Alejandro 2008/10/8 nate <[EMAIL PROTECTED]> > Alejandro wrote: > > Hi all, > > > > Currently I have a big question. > > > > What is the best OPEN SOURCE solution for monitoring multiple Host and > > Services, for example for using in a WebHosting Provider with 50 hosts or > > more. > > What exactly are you interested in monitoring? Different > tools have different uses. If your used to nagios and your > environment isn't that big perhaps you should take a peek > at groundworks - > > http://www.groundworkopensource.com/community/community-edition.html > > I use a combination of nagios and cacti, nagios for event based > monitoring and cacti for performance monitoring/trending. My > cacti is *heavily* customized the result of hundreds of hours > of work and monitors roughly 11 million data points a day. Nagios > monitors about half a million. > > But depending on what exactly your monitoring will depend on > what tool is best. e.g. how complex of monitors are you needing. > Do you just need PING and basic HTTP checks or are you looking > into more complex application level monitoring? > > nate > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] need filesystem recommendation
Bacula is another good option is more easy to configure than amanda and have excelent funtions and admin panel Regards Alejandro www.linuxiso.com.ar 2008/10/11, Anne Wilson <[EMAIL PROTECTED]>: > On Saturday 11 October 2008 15:11:57 Mag Gam wrote: >> Hi All, >> >> I have a backup site and I would like to rsync from production to >> backup site. However, I would like to have all backups be compressed >> so I can save space. Can anyone recommend a good way to do this? I am >> currently using tar and bzip2 to do this. >> > You might like to look at amanda > > Anne > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Re: [OT] What is the best network monitoring tool?
Hi, For this same reason I look in centreon, is a nagios backend with a excelent integration with performace graphics all in one unique system Regards www.linuxiso.com.ar 2008/10/12, Thomas Bleier <[EMAIL PROTECTED]>: > Les Mikesell wrote: >> Alejandro wrote: >>> Nate, >>> >>> Thanks for your response. >>> >>> Currently I have a lot of services to monitoring for example: >>> >>> Databases : Oracle - Mysql - MSSql >>> WebServers: SunWebServer - SunJavaAppServer - Apache >>> Systems: Windows - Linux >>> Networking: Cisco Switch - Lan Interfaces >>> >>> Currently I look these projects: Groundwork and Centreon >>> (http://www.centreon.com/), this two tools based in Nagios, but with >>> statistical tools >>> >>> And other excellent tool is JFFNMS (http://www.jffnms.org/) >>> >> >> Don't forget OpenNMS - http://www.opennms.org. >> > > Hi, > > I also use Nagios for monitoring events, and I'm quite happy with it, > but I'm looking for a complementary tool for performance/trend > monitoring, since I'm not very happy with the Nagios Addons like > NagiosGrapher, PNP and the like (limited functionality, high > installation effort). > > I've also taken a look at Cacti, but it seems not very mature yet and > integration into Nagios is also rather tedious if you don't want two > separate solutions doing things twice. > > Recently I stumbled over Munin (http://sourceforge.net/projects/munin/), > which looks interesting, but I didn't have the time to take a look at it > yet. > > Anybody using Nagios and Munin together and want's to share some > experience? :-) > > best regards, > __ > /homas > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [OT] What is the best network monitoring tool?
Hi all, Currently I discover this link: http://en.wikipedia.org/wiki/Comparison_of_network_monitoring_systems Is a excellent reference about the more know NMS Software. Regards, Alejandro www.linuxiso.com.ar 2008/10/15 "José Mejía , Ayto de l'Alcora" <[EMAIL PROTECTED]> > Hello: > > I'm using hobbit : > > http://hobbitmon.sourceforge.net/ > http://www.hswn.dk/hobbit (live system) > > > "Hobbit monitors your *hosts*, your *network services*, and *anything else > * you configure it to do via extensions. Hobbit can periodically generate > requests to network services > - http, ftp, smtp and so on - and record if the service is responding as > expected. You can also monitor local disk utilisation, logfiles and > processes through the use of agents installed on the servers." > > > It's not as complete as nagios but works fine > > Greetings > > > Tim Berger escribió: > > On Wed, Oct 8, 2008 at 7:01 PM, Alejandro <[EMAIL PROTECTED]> wrote: > >> Hi all, >> >> Currently I have a big question. >> >> What is the best OPEN SOURCE solution for monitoring multiple Host and >> Services, for example for using in a WebHosting Provider with 50 hosts or >> more. >> > > I've had good luck with "mon". Written in Perl and supports plug-in > monitor and alert modules. The modules are easy to write. > > It's better than most largely advertised system monitoring/alert packages > because it is simple in design, configuration is flexible, and it supports a > large number of hosts. > > http://mon.wiki.kernel.org/index.php/Main_Page > > >> >> Currently, I'm using NAGIOS for more than 3 years, this is a incredible >> tool, but before upgrade to version 3, I have this existential question. >> >> Please fill free to recommend any soft, but with this option in mind. >> 1- Easy option to personalize any plug-in >> 2- Good Documentation >> 3- Support large platforms >> 4- Run over Linux >> >> Sorry for me English >> Regards >> Alejandro >> www.linuxiso.com.ar >> from Buenos Aires, Argentina >> >> ___ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> >> > > > -- > -Tim > > -- > > ___ > CentOS mailing [EMAIL PROTECTED]://lists.centos.org/mailman/listinfo/centos > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] about postfix
Hi, Thank you all at first. I've downloaded and installed postfix from CentosPlus couse i needed the MySql support version of postfix, but i need to know if i've could have problems if any new version it's been released from the official mirror of the same pack, how can i handle the updates, witch the best way?. Thank you so much again. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CUPS designjet 500
Hi everyone!! Does someone have configured a plotter HP designjet 500?, what driver did you use?, or what did you do? I'm using centos 5.4 ------ Alejandro Rodriguez Luna E-mail: el_alexl...@yahoo.com.mx -- Encuentra las mejores recetas en Yahoo! Cocina. http://mx.mujer.yahoo.com/cocina/___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Centos security sshv1
Hi all! I was scanning my servers with nmap, ( i have installed ssh), and the result gave me this: 22/tcp open ssh sshv1: Server Supports SSHv1 ssh-keyhost: 1024 ea:7e:77:b7:a1:78:18:70:6c:46:ee:a0:dd:08:0e:74 (RSA1) 1024 ba:d0:8a:44:16:fc:7c:7a:38:24:2e:72:06:fe:99:56 (DSA) 1024 ff:43:15:78:98:3c:75:f9:12:36:58:92:46:6c:1c:99 (RSA) could this be a threat for intruders? i know that sshv1 should be avoided, but all i want to know is if with that information, a intruder could compromise my server? Encuentra las mejores recetas en Yahoo! Cocina. http://mx.mujer.yahoo.com/cocina/___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] script regular expression
Hi everyone, I was creating a script and i found something i can't figure out. #/bin/bash for i in $(cat certificates.txt) do echo $i done I expected this RSA Secure Server Certification Authority VeriSign Class 1 CA Individual Subscriber-Persona Not Validated but i got this RSA Secure Server Certification Authority VeriSign Class 1 CA Individual Subscriber-Persona Not Validated any ideas how to fix this? i mean, how can i get the whole line instead of word by word? -- Alejandro Rodriguez Luna E-mail: el_alexl...@yahoo.com.mx Movil: 044-311-112-86-41 -- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script regular expression
THanks all who gave me an answer, i found this doc and helped me. Thanks again http://mywiki.wooledge.org/DontReadLinesWithFor -- Alejandro Rodriguez Luna E-mail: el_alexl...@yahoo.com.mx Movil: 044-311-112-86-41 -- De: "m.r...@5-cent.us" Para: CentOS mailing list Enviado: Viernes, 10 de febrero, 2012 9:59:35 Asunto: Re: [CentOS] script regular expression Steve Brooks wrote: > On Thu, 9 Feb 2012, Alejandro Rodriguez Luna wrote: > >> Hi everyone, I was creating a script and i found something i can't >> figure out. >> >> #/bin/bash >> for i in $(cat certificates.txt) >> do >> echo $i >> done >> >> I expected this >> >> RSA Secure Server Certification Authority >> VeriSign Class 1 CA Individual Subscriber-Persona Not Validated >> >> >> but i got this >> >> RSA >> Secure Sure will. i is in the list RSA Secure etc. and each word is a member of the list, separated by whitespace. Y'know, it would be a lot easier to do awk '{print $0;}' certificates.txt, which would be exactly what you want. mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Total Number of conecctions
I have the need to know how many connection the server has, i run this command but i don't know how to sum all the results and get a final number. any ideas? netstat -an | grep -E 'tcp|udp' | awk '{print $6}' | sort | uniq -c | sort -n 1 CLOSE_WAIT 1 FIN_WAIT_2 1 LAST_ACK 1 TIME_WAIT 4 SYN_SENT 15 37 LISTEN 44 ESTABLISHED ------ Alejandro Rodriguez Luna Web: http://www.alexluna.org E-mail: el_alexl...@yahoo.com.mx MSN: el_alexl...@yahoo.com.mx GTalk: alexl...@gmail.com Movil: 044-311-112-86-41 -- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Script Output Format
Hi all! i'm just did a script that the output must be comma separated to be imported into a spreadsheet. the output that i obteined was Date/Time,We. Active Threads,W. Total Threads,W. Worker Threads,Name 29-12-10/11:43:01,0,250,0,/FIM ,0,/mytest ,0,/mockofprod/financing/customercentre ,0,/mockofprod/financing/commercial/amt ,0,/account/orderstatus ,0,/activities as you can see, the first row it's ok, but the second and third, etc etc, are not formated. any ideas of how can i achive this? NOTE: the first three values are simple commands that i put in order, the fourth and fifth are from a file. this is part of the code. printf "%s,%d,%d" $DATE $WSAT $WSTT >> output.${STANZA}.txt for i in `cat jlist.${STANZA}.txt` do JUNCTION=${i} WSWJ=`pdadmin -a sec_master -p ${PASSWD} server task ${STANZA} show ${JUNCTION} | grep 'threads' | awk '{ print $4 }'` printf ",%d,%s\n" ${WSWJ} ${JUNCTION} >> output.${STANZA}.txt done -- Alejandro Rodriguez Luna Movil: 044-311-112-86-41 -- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Script Output Format
Thanks for the reply, the output it's ok, none of the variabbles or values are null, i just want that the format appears like this: 29-12-10/11:43:01,0,250,0,/FIM 0,/mytest 0,/mockofprod/financing/customercentre 0,/mockofprod/financing/commercial/amt 0,/account/orderstatus 0,/activities --- El mié 29-dic-10, m.r...@5-cent.us escribió: De: m.r...@5-cent.us Asunto: Re: [CentOS] Script Output Format A: "CentOS mailing list" Fecha: miércoles, 29 de diciembre de 2010, 11:59 Alejandro Rodriguez Luna wrote: > i'm just did a script that the output must be comma separated to be > imported into a spreadsheet. > > the output that i obteined was > > Date/Time,We. Active Threads,W. Total Threads,W. Worker Threads,Name > 29-12-10/11:43:01,0,250,0,/FIM > ,0,/mytest > ,0,/mockofprod/financing/customercentre > ,0,/mockofprod/financing/commercial/amt > ,0,/account/orderstatus > ,0,/activities > > as you can see, the first row it's ok, but the second and third, etc etc, > are not formated. any ideas of how can i achive this? > > NOTE: the first three values are simple commands that i put in order, the > fourth and fifth are from a file. > > this is part of the code. > > > printf "%s,%d,%d" $DATE $WSAT $WSTT >> output.${STANZA}.txt > > for i in `cat jlist.${STANZA}.txt` > do > JUNCTION=${i} > WSWJ=`pdadmin -a sec_master -p ${PASSWD} server task ${STANZA} show > > ${JUNCTION} | grep 'threads' | awk '{ print $4 }'` > printf ",%d,%s\n" ${WSWJ} ${JUNCTION} >> output.${STANZA}.txt > done Well, it looks like $WSWJ is null. What's the output... hmmm, consider that there may be more than one line with "threads", and that the fourth element of the last line may not be what you want. (And you *could* just do ...| awk {if ($0 ~ /threads/) { print $4;}}`) mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos