I receive windows files via the internet on my solaris server. Since unix doesn't handle blanks well I change the blanks to ? which works just fine. I take these files and ftp them to windows so our analysts can work with them. Recently I received a file with the following structure:
... (3 Replies)
:confused:
Is there any way to use in awk a regular exprexion with a format not previusly known?
I mean something like /VAR/ ,obviously VAR is the variable exprexion.
Thak you all in advance. (4 Replies)
Hello everyone,
I have a script thats acting funky, what I would like to do is report to a file, how long its taking to get to certain area's, in seconds. For example.
-- Start timer
-- Run unix command 1
-- Run unix command 2
-- Stop timer
-- Report Seconds
-- etc etc
Is there a way... (3 Replies)
Here's my script
read number
if echo $number | grep ""
I want this "if" statement to return true only when numbers without letters is matched.
For example 45 - true, 923 - true, r5 - false, tg/f - false and so on.
In this script even a single digit number like "3" returns false.
Thanks. (1 Reply)
Hi,
Please let me know how to perform the substring operation in kshell.
If i have line like below
238923893282389034893489458945904589045454903490
i would like to retrieve the position 7 to 19, how to do this in kshell? (1 Reply)
#! /bin/csh
set umr=UMR
foreach i ( `ls`)
set file_nm=$i
set bh_nm=`echo $file_nm | cut -d"_" -f2`
if($bh_nm !=$umr) then
{
set bh_ext=`echo $file_nm | cut -d"_" -f4`
set bh_num_nm="$bh_nm $bh_ext a .txt"
mv $file_nm $bh_num_nm
}
... (1 Reply)
my $hw_plf_desc = `grep hw_platform $NODE_CFG_FILE`;
if($hw_plf_desc =~ /Netra X4270 X4446A M2 /)
Could someone explain the use of =~ .... this works only for perl . What is the alternate for the same in shell . Could any one convert this to shell script (7 Replies)
Hi,
I am getting a string in the file, I want to parse the srting and extract the percentage from the string. Sample string are -
ASAD112_sd12.34%adnmfk
ASAsds_1.34%adnmfk
ASAdf 2 sd12.34%adnmfk
ASAD112_sd 12.34% adnmfk
ASAD112_sd12.34% adnmfk
I want to extract the numeric value... (3 Replies)
I am an AIX noobie, and have a question around an AIX 5.2 script that I need to run. Security Audit requires us to have no World Writable files on our server, but every time we restart the Domino server on AIX it re-flags two files as World Writable.
I have a little script that I created that... (5 Replies)
Discussion started by: Nebs
5 Replies
LEARN ABOUT DEBIAN
avc_compute_create
avc_compute_create(3) SELinux API documentation avc_compute_create(3)NAME
avc_compute_create, avc_compute_member - obtain SELinux label for new object.
SYNOPSIS
#include <selinux/selinux.h>
#include <selinux/avc.h>
int avc_compute_create(security_id_t ssid, security_id_t tsid,
security_class_t tclass, security_id_t *newsid);
int avc_compute_member(security_id_t ssid, security_id_t tsid,
security_class_t tclass, security_id_t *newsid);
DESCRIPTION
avc_compute_create is used to compute a SID to use for labeling a new object in a particular class based on a SID pair. This call is iden-
tical to security_compute_create, but does not require converting from userspace SID's to contexts and back again.
avc_compute_member is used to compute a SID to use for labeling a polyinstantiated object instance of a particular class based on a SID
pair. This call is identical to security_compute_member, but does not require converting from userspace SID's to contexts and back again.
These functions return a SID for the computed context in the memory referenced by sid.
RETURN VALUE
On success, zero is returned. On error, -1 is returned and errno is set appropriately.
ERRORS
EINVAL The tclass and/or the security contexts referenced by ssid and tsid are not recognized by the currently loaded policy.
ENOMEM An attempt to allocate memory failed.
AUTHOR
Eamon Walsh <ewalsh@tycho.nsa.gov>
SEE ALSO avc_init(3), avc_context_to_sid(3), security_compute_create(3), selinux(8)
30 Mar 2007 avc_compute_create(3)