Sponsored Content
Full Discussion: Chemist Needs Help
Top Forums UNIX for Dummies Questions & Answers Chemist Needs Help Post 302251209 by gingburg on Saturday 25th of October 2008 07:02:42 PM
Old 10-25-2008
Quote:
Originally Posted by jim mcnamara
Yes. Those come from this:
Code:
awk '/Done/ {print $2; exit}' Ar_b3lyp_pv5z.out | read col3

This just reads the first 'Done' line from the file. YOu need run this
Code:
awk '/Done/ {print $2; exit}' Ar_b3lyp_pv5z.out

and see what you get. I suspect you get nothing. In that case, play with this line awk statment until it produces what you want. Duplicate your efforts on the other line that creates col4. Dont forget to add the | read col3 and read | col4 statements back onto the line.

If you know what the values are supposed to be anyway, hardcode them in, skip the awk for now example:
Code:
col3=99999
#awk '/Done/ {print $2; exit}' Ar_b3lyp_pv5z.out | read col3

The leading # character comments out the line. Repeat this for the col4 line.

It seems when I run the awk '/Done/ {print $5; exit}' Ar_b3lyp_pv5z.out in the command line I do get my one value that I want to repeat 101 times. But when I run the entire script everything is printed except for columns 3 and 4.

Any thoughts. Thanks.

Also I don't know if you care or not but this is technically not my work but yours so I should cite your name as a reference. That's up to you.
 

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

Chemist Needs Help part II

Hello friends, I was wondering if you can help me with probably a simple function to you all: the sample looks and has this format. I was wondering how I could extract the first and second column starting including the line 'E/N and Ko' and not stop until there are no more lines. Thank you for... (5 Replies)
Discussion started by: gingburg
5 Replies
keepalived(8)						      System Manager's Manual						     keepalived(8)

NAME
keepalived. - keepalive demon SYNOPSIS
/usr/sbin/keepalived [-n] [-f keepalived.conf] [-d] [-h] [-v] DESCRIPTION
The keepalived The keepalived server implements the vrrpd routing demon which enables routing failover for a pair (or set) of routers (or LVS directors) and the keepalived demon which sets up and does the health checking of virtual services in a Linux Virtual Servier. OPTIONS
--vrrp, -P Only run the VRRP subsystem. --check, -C Only run the healthchecker subsystem. --dont-release-vrrp, -V leave (don't remove) VRRP VIPs & VROUTEs on daemon stop. --dont-release-ipvs, -I Dont remove IPVS topology on daemon stop. --dont-fork, -n Dont fork the daemon process. --use-file, -f keepalived.conf_file Use the specified configuration file. --wdog-vrrp, -R Define VRRP watchdog polling delay (default=5s) --wdog-check, -H Define healthchecker's watchdog polling delay (default=5s) --dump-conf, -d Dump the configuration data. --log-console, -l Log messages to local console. --log-detail, -D Detailed log messages (the default with the rc script provided). --log-facility, -S 0-7 Set syslog facility to LOG_LOCAL[0-7] (default=LOG_DAEMON) --help, -h Display a short inlined help screen. --version, -v Display the version number. FILES
/etc/keepalived/keepalived.conf SEE ALSO
keepalived.conf(5) AUTHORS
Joseph Mack from inspection of the output of keepalived --help from keepalived-1.1.4 Jan 2004 keepalived(8)
All times are GMT -4. The time now is 07:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy