Hi,
I have a awk script to read a CSV file.
After reading the values i want to call a executable (nameely call_it) with the values what i read from the scv file.
I dont want to use system command inside the awk.
Is there any other way to run the executable from the awk script
Thanks ... (1 Reply)
Hi Jim,
The following script is in working state. But i m having one more problem with awk cmd. Could you tell me how to use any variable inside awk or how to take any variable value outside awk.
My problem is i want to maintain one property file in which i am declaring variable value into that... (12 Replies)
Hi,
I am using awk statement to extract data from a file and write a new file with certain columns rearranged and few hard coded values added to new file.
Now i need to add a column with sysdate. can i do that inside the awk print statement?
Now:
nawk ' /^3/ BEGIN {FS=","}... (2 Replies)
below is the output xml string from some other command and i will be parsing it using awk
cat /tmp/alerts.xml
<Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
Hi,
I would like to use grep command inside awk.
Here is my requirement below :
file.txt
col1 col2 col3 col 4 col 5
wrxwrx 124 jun 3 Sensex.EMEA
wrxwrx 120 jun 4 Emex.US
wrxwrx 130 feb 3 passion.AUS
wrxwrx 145 feb 9 lession.AUS
wrxwrx 130 feb 5 pass.US
wrxwrx 130 feb 8... (5 Replies)
Hi Gurus... good day;
currently I trying to run the df -g command with awk to get to convert in SQL statement, but I have some errors;
df -g | awk '{print "This is the FileSystem: " $NF, " This is LV: "$1, "This is SIZE: "$2, "This is FREE: " $3, "This is the USED% "$4}'
This on AIX... (3 Replies)
Hello folks,
I have multiple occurrences of the pattern:
).:
where is any digit, in various text context but the pattern is unique as this regex. And I need to turn this decimal fraction into an integer (corresponding percent value: the range of 0-100).
What I'm doing is:
cat... (1 Reply)
I tried running this.
dsh -w server1 'lsof /audit | awk '{ print $2 }''
It did not like above so I tried to escape the single parenthesis at the end.
dsh -w server1 'lsof /audit | awk '{ print $2 }\''
It then hung so I changed up the parenthesis to this. This worked.
dsh -w server1... (6 Replies)
Discussion started by: cokedude
6 Replies
LEARN ABOUT DEBIAN
tomoyo-savepolicy
TOMOYO-SAVEPOLICY(8) System Administration Utilities TOMOYO-SAVEPOLICY(8)NAME
tomoyo-savepolicy - save TOMOYO Linux policy
SYNOPSIS
tomoyo-savepolicy [directory]
tomoyo-savepolicy [directory] [remote_ip:remote:port]
DESCRIPTION
This program saves TOMOYO Linux policy onto disk from kernel memory.
The directory /etc/tomoyo/policy/YY-MM-DD.hh:mm:ss is created with four files inside: domain_policy.conf, exception_policy.conf,
profile.conf, and manager.conf. The symbolic links /etc/tomoyo/policy/previous and /etc/tomoyo/policy/current are updated to point to the
previous and current YY-MM-DD.hh:mm:ss directories respectively.
The following symbolic links should exist within the /etc/tomoyo directory:
domain_policy.conf -> policy/current/domain_policy.conf
exception_policy.conf -> policy/current/exception_policy.conf
profile.conf -> policy/current/profile.conf
manager.conf -> policy/current/manager.conf
policy/current -> policy/YY-MM-DD.hh:mm:ss
policy/previous -> policy/YY-MM-DD.hh:mm:ss
You can therefore access the current policy files without having to descend into subdirectories, and without having to determine which
YY-MM-DD.hh:mm:ss directory is the most recent.
If the policy type is specified, this program works similar to cat(1).
OPTIONS -e Print /sys/kernel/security/tomoyo/exception_policy to standard output.
-d Print /sys/kernel/security/tomoyo/domain_policy to standard output.
-p Print /sys/kernel/security/tomoyo/profile to standard output.
-m Print /sys/kernel/security/tomoyo/manager to standard output.
-s Print /sys/kernel/security/tomoyo/stat to standard output.
directory
Save policy to an alternative directory, rather than the default /etc/tomoyo directory.
remote_ip:remote_port
Save policy on a remote system via an agent waiting at port remote_port on IP address remote_ip.
EXAMPLES
Save policy to disk
tomoyo-savepolicy
Print "/sys/kernel/security/tomoyo/exception_policy" to standard output
tomoyo-savepolicy -e
Retrieve policy from a remote system and save in a local directory
tomoyo-savepolicy /etc/tomoyo/192.168.1.1/ 192.168.1.1:10000
BUGS
If you find any bugs, send an email to <tomoyo-users-en@lists.sourceforge.jp>.
AUTHORS
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Main author.
Jamie Nguyen <jamie@tomoyolinux.co.uk>
Documentation and website.
SEE ALSO tomoyo-editpolicy-agent(8), tomoyo-loadpolicy(8)
See <http://tomoyo.sourceforge.jp> for more information.
tomoyo-tools 2.5.0 2012-04-14 TOMOYO-SAVEPOLICY(8)