06-19-2008
clearification
by the word "scope" i mean career oppertunities for future.......
10 More Discussions You Might Find Interesting
1. Programming
I'm having a problem getting this to work..
I got 3 files,
start.C - Where i got my main() function
Menu.C & Menu.h - Where I'm trying to use hash_map
start.C
#include <iostream>
#include "Menu.h"
using namespace std;
int main() { /* test code here */ return 0; }
Menu.h ... (1 Reply)
Discussion started by: J.P
1 Replies
2. Programming
I've been wondering if I can make mutexes much easier to use in C++ with creative use of a locking class and variable scope, but I'm not sure if things happen in the order I want. Here's pseudocode for something that could use the class:
int someclass::getvalue()
{
int retval;
... (0 Replies)
Discussion started by: Corona688
0 Replies
3. Programming
Each thread has a copy of auto variables within a function, but variables
declared as static within a function are common to all threads. To circumvent
this can static variables be placed outside the function. If so, will the
scope of the variable be file only or will it be extern, and will each... (7 Replies)
Discussion started by: sundaresh
7 Replies
4. Shell Programming and Scripting
I call my script with two parameters
myscript.sh aaa bbb
What is the way to access $1 and $2 values inside a function? I call the function like this
myfuntion $1 $1
but inside of the function, $1 and $2 are empty. Any suggestions? thank you in advanced. (1 Reply)
Discussion started by: aristegui
1 Replies
5. Shell Programming and Scripting
Hi ,
I'm trying to change the variable value in a while loop , however its not working it seems that the problem with subshells while reading the file.
#!/bin/sh
FLAG=0;
cat filename | while read data
do
FLAG=1;
done
echo $FLAG
Should display 1 instead displays 0 (13 Replies)
Discussion started by: dinjo_jo
13 Replies
6. Shell Programming and Scripting
Hi,
I want to know about the variable scope in shell script.
How can we use the script argument inside the function?
fn () {
echo $1 ## I want this argument should be the main script argument and not the funtion argument.
}
also are there any local,global types in shell script?
if... (3 Replies)
Discussion started by: shellwell
3 Replies
7. AIX
Hello All,
I am getting this error while compiling my application on IBM AIX 5.3.
As I tried to define _XOPEN_SOURCE=500 in makefile, that didn't work.
Please help us to resolve the error. (0 Replies)
Discussion started by: mustus
0 Replies
8. Shell Programming and Scripting
I am trying to use bc to calculate the difference between two nano second time stamps. bc does the calculation but seems to ignore the scale option:
micro_start=$(date +%s.%N)
# .. some stuff happens here
micro_stop=$(date +%s.%N)
TOT=$(echo "scale=3; $micro_stop - $micro_start" | bc)... (2 Replies)
Discussion started by: LostInTheWoods
2 Replies
9. AIX
I am mac end user learn some shell and applescripting
I am looking AIX as system admin as career and learning AIX p520
what is scope of AIX as admin and about technology in demand in market
I am confused, can anybody from AIX elaborate or mail me some experience
please: (1 Reply)
Discussion started by: himanshuk
1 Replies
10. UNIX for Advanced & Expert Users
Hi all
I have a script that listens on a named pipe. That all works fine but I want to trap any kill signals and make sure I delete the named pipe on exit.
I can delete it fine exiting normally but cannot get the trap to see the variable holding the pipe name -
trap "rm -f ${PIPE};exit"... (1 Reply)
Discussion started by: steadyonabix
1 Replies
LEARN ABOUT OPENSOLARIS
systemd.scope
SYSTEMD.SCOPE(5) systemd.scope SYSTEMD.SCOPE(5)
NAME
systemd.scope - Scope unit configuration
SYNOPSIS
scope.scope
DESCRIPTION
Scope units are not configured via unit configuration files, but are only created programmatically using the bus interfaces of systemd.
They are named similar to filenames. A unit whose name ends in ".scope" refers to a scope unit. Scopes units manage a set of system
processes. Unlike service units, scope units manage externally created processes, and do not fork off processes on its own.
The main purpose of scope units is grouping worker processes of a system service for organization and for managing resources.
systemd-run --scope may be used to easily launch a command in a new scope unit from the command line.
See the New Control Group Interfaces[1] for an introduction on how to make use of scope units from programs.
IMPLICIT DEPENDENCIES
Implicit dependencies may be added as result of resource control parameters as documented in systemd.resource-control(5).
DEFAULT DEPENDENCIES
The following dependencies are added unless DefaultDependencies=no is set:
o Scope units will automatically have dependencies of type Conflicts= and Before= on shutdown.target. These ensure that scope units are
removed prior to system shutdown. Only scope units involved with early boot or late system shutdown should disable DefaultDependencies=
option.
SEE ALSO
systemd(1), systemd-run(1), systemd.unit(5), systemd.resource-control(5), systemd.service(5), systemd.directives(7).
NOTES
1. New Control Group Interfaces
https://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/
systemd 237 SYSTEMD.SCOPE(5)