12-03-2018
@gull04.....agreed. Re-seat all memory first.
This User Gave Thanks to hicksd8 For This Post:
10 More Discussions You Might Find Interesting
1. Linux
we hv a big enviroment networked.
we use squid proxy.
access allowed by src address previously.
we have win2000 network with ads.
my requirement is the proxy should allow domain users only for access.
how can i map my windows userdatabase with squid
is there any thing specific which has 2 b... (1 Reply)
Discussion started by: sriram.s
1 Replies
2. UNIX for Dummies Questions & Answers
Hi, I'm a newbie.
I need help on my first assignment in UNIX.
1. How do I determine the number of non-empty directories?
I was told to create a variable ARCHIVE, which points to the directory that contains the archive of the messages. But I'm so dumb and I don't even know how to do this.
2. In... (1 Reply)
Discussion started by: hygsg
1 Replies
3. UNIX for Dummies Questions & Answers
Hi every one
I have got very very bad Email, My question is:
How can I get all information about that f*** Email, I do mean
IP,reall name, Adress, user name, password etc... I wonder if there is any program or website that I can see that email, help me please
When I used windows Xp(old... (2 Replies)
Discussion started by: Cano
2 Replies
4. UNIX for Dummies Questions & Answers
Hi...
Why should I press F1 to start windows?! I have Xp in my computer... thx 4 help
Cano (1 Reply)
Discussion started by: Cano
1 Replies
5. Shell Programming and Scripting
I have a list of variables: ss1, ss5, ss6, ss8, st2 etc. (these values are not fixed, configurable). Now, I have assigned ss5=”test”. And I want to search in the list for the string “test” to know which variable is having the value “test”. Can u pls tell me how to do this? (10 Replies)
Discussion started by: kanchan_cp
10 Replies
6. Shell Programming and Scripting
Hi,
I need your help guys. I have two data files, namely 101.amberized.pdb & 101.pdb .
Now I want to replace the whole 3rd column of 101.amberized.pdb with the 3rd column of 101.pdb file. How do I do it in shell?
Thanks in advance
Parimal (11 Replies)
Discussion started by: chuchu
11 Replies
7. Shell Programming and Scripting
When i run this command, everything is ok. The file can be email and attached but soon after i download the file, the file cant be read. It's seem corrupted. Totally cant be read although i'm using context or wordfile. Original file generated at ek_bkup/alert/tbspace_datafile.log is OK.....
... (7 Replies)
Discussion started by: adzuanamir
7 Replies
8. UNIX for Dummies Questions & Answers
I have this code:
#!/bin/sh
awk 'BEGIN
NR == 2
repl = "PHI"
$4 = repl
print $0 'dryloop.txt
and this code:
#!/bin/sh
sed -e '1s/\|$/\|COMID\|/g' -e 's/^087.*$/&PHI\|g' hl.dsldryloop > textdry.txt
My code won't work. I want to change the COMID of lines starting with 087 .
this is my... (15 Replies)
Discussion started by: arkhei
15 Replies
9. Homework & Coursework Questions
How to find the ten most common words in a file (1 Reply)
Discussion started by: jass
1 Replies
10. Solaris
Greetings,
I hope my post finds you all OK,
I have a Netra240 server in an HLR inside a wireless CDMA Exchange, it works as a Hard Disk Unit (HDU) as shown in Local Management Terminal (LMT) as show in the picture 1 attached.
The power went down because of a power failure in main UPS, when... (2 Replies)
Discussion started by: Sharista
2 Replies
LEARN ABOUT POSIX
sd_seat_get_active
SD_SEAT_GET_ACTIVE(3) sd_seat_get_active SD_SEAT_GET_ACTIVE(3)
NAME
sd_seat_get_active, sd_seat_get_sessions, sd_seat_can_multi_session - Determine state of a specific seat
SYNOPSIS
#include <systemd/sd-login.h>
int sd_seat_get_active(const char* seat, char** session, uid_t* uid);
int sd_seat_get_sessions(const char* seat, char*** sessions, uid_t** uid, unsigned* n_uids);
int sd_seat_can_multi_session(const char* seat);
DESCRIPTION
sd_seat_get_active() may be used to determine which session is currently active on a seat, if there is any. Returns the session identifier
and the user identifier of the Unix user the session is belonging to. Either the session or the user identifier parameter can be be passed
NULL, in case only one of the parameters shall be queried. The returned string needs to be freed with the libc free(3) call after use.
sd_seat_get_sessions() may be used to determine all sessions on the specified seat. Returns two arrays, one (NULL terminated) with the
session identifiers of the sessions and one with the user identifiers of the Unix users the sessions belong to. An additional parameter may
be used to return the number of entries in the latter array. The two arrays and the latter parameter may be passed as NULL in case these
values need not to be determined. The arrays and the strings referenced by them need to be freed with the libc free(3) call after use. Note
that instead of an empty array NULL may be returned and should be considered equivalent to an empty array.
sd_seat_can_multi_session() may be used to determine whether a specific seat is capable of multi-session, i.e. allows multiple login
sessions in parallel (whith only one being active at a time).
If the seat parameter of any of these functions is passed as NULL the operation is executed for the seat of the session of the calling
process, if there is any.
RETURN VALUE
On success sd_seat_get_active() return return 0 or a positive integer. On success sd_seat_get_sessions() returns the number of entries in
the session identifier array. If the test succeeds sd_seat_can_multi_session returns a positive integer, if it fails 0. On failure, these
calls return a negative errno-style error code.
NOTES
The sd_seat_get_active(), sd_seat_get_sessions(), and sd_seat_can_multi_session() interfaces are available as shared library, which can be
compiled and linked to with the libsystemd-login pkg-config(1) file.
SEE ALSO
systemd(1), sd-login(7), sd_session_get_seat(3)
AUTHOR
Lennart Poettering <lennart@poettering.net>
Developer
systemd 10/07/2013 SD_SEAT_GET_ACTIVE(3)