Another C++ question, please do notify me if this forum is C-only!
:)
I'm having a vector...
vector<Person> x;
... with a class I've defined (Person).
I have several elements in this vector and I would like to save it to a file (binary (?)). And later on open up this file to retrieve... (1 Reply)
Hello.
I have written a bash script that I am sharing with an OS X community I am a member of. The purpose of the script is to execute a series of commands for members without them having to get involved with Terminal, as it can be daunting for those with no experience of it at all. I have renamed... (4 Replies)
I tried the
tail -f my-slow.log | grep 'someWord' > /root/myfile.txt
This does not work.
I tried --tee as well and that too does not work. Any help? (1 Reply)
HI
I have a file samp1.xml which has the following content
<ErrorMessage><ExceptionNumber>5117</ExceptionNumber><OriginalMessage><!<?xml version="1.0" encoding="UTF-8"?> <EMAILS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNameSpaceSchemaLocation=".\SMTPSchema.xsd"> <EMAIL... (7 Replies)
I have a file with the following content:
--------------------
SQL> @DBmonitor_WMHA_SQL_script.sql;
Tablespace Size (GB) Free (GB) % Free % Used
------------------------------ ---------- ---------- ---------- ----------
WMHAIT_IS ... (8 Replies)
Dear All
I have 200 data files and each files has many duplicates.
I am looking for the automated awk script such that it checks and removes the duplicates from the each file and saving them as new files for all 200 files in the respective folder.
For example my data looks like this..
... (12 Replies)
Hi Guy's,
I want to run a snoop on an interface and then save it to the local jumpbox that I am connected to the end device via. Can anyone help with the syntax please.
Cheers (3 Replies)
Hi,
i need help with a file creation of an output program. I've got a program that with #find creates an output for each files in a directory.
If i give this command :
-o spec$(date -u +%Y%m%dt%H%M)
it creates just one file, overwriting all the others since it is the creation date .... (2 Replies)
Hello all,
Info:
System RedHat 7.5
I need to create a script that based on the creation time,
if the file is older then 5 minutes then execute some stuff, if not exit.
I thought to get the creation time and minutes like this.
CreationTime=$(stat -c %y /tmp/test.log | awk -F" " '{ print... (3 Replies)
Discussion started by: charli1
3 Replies
LEARN ABOUT OPENSOLARIS
setlabel
setlabel(1) User Commands setlabel(1)NAME
setlabel - move files to zone with corresponding sensitivity label
SYNOPSIS
/usr/bin/setlabel newlabel filename...
DESCRIPTION
setlabel moves files into the zone whose label corresponds to newlabel. The old file pathname is adjusted so that it is relative to the
root pathname of the new zone. If the old pathname for a file's parent directory does not exist as a directory in the new zone, the file is
not moved. Once moved, the file might no longer be accessible in the current zone.
Unless newlabel and filename have been specified, no labels are set.
Labels are defined by the security administrator at your site. The system always displays labels in uppercase. Users can enter labels in
any combination of uppercase and lowercase. Incremental changes to labels are supported.
Refer to setflabel(3TSOL) for a complete description of the conditions that are required to satisfy this command, and the privileges that
are needed to execute this command.
EXIT STATUS
setlabel exits with one of the following values:
0 Successful completion.
1 Usage error.
2 Error in getting, setting or translating the label.
USAGE
On the command line, enclose the label in double quotes unless the label is only one word. Without quotes, a second word or letter sepa-
rated by a space is interpreted as a second argument.
% setlabel SECRET somefile
% setlabel "TOP SECRET" somefile
Use any combination of upper and lowercase letters. You can separate items in a label with blanks, tabs, commas or slashes (/). Do not use
any other punctuation.
% setlabel "ts a b" somefile
% setlabel "ts,a,b" somefile
% setlabel "ts/a b" somefile
% setlabel " TOP SECRET A B " somefile
EXAMPLES
Example 1 Set a Label.
To set somefile's label to SECRET A:
example% setlabel "Secret a" somefile
Example 2 Turn On a Compartment.
Plus and minus signs can be used to modify an existing label. A plus sign turns on the specified compartment for somefile's label.
example% setlabel +b somefile
Example 3 Turn Off a Compartment.
A minus sign turns off the compartments that are associated with a classification. To turn off compartment A in somefile's label:
example% setlabel -A somefile
If an incremental change is being made to an existing label and the first character of the label is a hyphen (-), a preceding double-hyphen
(--) is required.
To turn off compartment -A in somefile's label:
example% setlabel -- -A somefile
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWtsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO setflabel(3TSOL), label_encodings(4), attributes(5)NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
This implementation of setting a label is meaningful for the Defense Intelligence Agency (DIA) Mandatory Access Control (MAC) policy. For
more information, see label_encodings(4).
SunOS 5.11 20 Jul 2007 setlabel(1)