The PATH variable lists directories the shell will hunt inside when looking for an executable. It can vary from system to system, but nearly all paths should have /bin/ and /usr/bin. Place your script under /usr/bin/ and people should be able to use it. Or, add another path to their PATH so they can find it in some custom directory.
I have encountered a very weird behavior of a global variable in Korn Shell in AIX:
A function f1 in my script pipes the output of the function f2 to a program.
A variable defined as global using typeset gets its value in f2.
That value is not seen in f1. If I remove the pipe ksh recognizes the... (2 Replies)
Please go through the following two versions of code :-
Version 1 --- string1 and string2 declared as Global variables
The output is :-- (as expected sprintf is overwriting the first byte of string2 with NULL)
string1=send
string2=
#include <stdio.h>
char string1;
char string2;
main()... (2 Replies)
Guys, how can I define global variables in sorlaris...cause I lose the values outside the scope.
Rite now wat I do is,I redirect variable value to a file n then get it back outside the function...:o....theres obviously a better way of doing this...I now this is a basic question....but please... (2 Replies)
Hi Gurus
I am not able to ping the local zone from global zone
when i am trying to ping i am getting below
ICMP Host Unreachable from gateway zone ( 192.268.35.210)
for icmp from zone ( 192.168.35.210) to sun1 ( 192.168.35.210)
However i can ping local zone from global
please... (12 Replies)
is this the step?
add fs
set dir=/export
set special=/export
set type=lofs
add options rw
end
i notice i can't post immediately, moderator needs to moderate. i have 1 more post still haven't appear in the forum..hmm.... (1 Reply)
I am seeing different output from "who -u" when we execute "who -u" in global INIT and local SRP after calling telnet, rlogin and remsh. We are not seeing correct output when we login to local SRP using telnet, rlogin and remsh.
srp_init just creates an UTMP entry in the UTMP database. Based my... (1 Reply)
Dears,
I would like to convert solaris 10 x86 and solaris 10 sparc (Global Zones) physical servers into Local zones.
i found a document which seems to be helpful but i'm stuck @ the 1st step.
to test this i want to do it 1st on x86 system running under vmware ESXi and if it succeeds i will... (1 Reply)
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies
LEARN ABOUT LINUX
init-checkconf
init-checkconf(8) System Manager's Manual init-checkconf(8)NAME
init-checkconf - manual page for init-checkconf
SYNOPSIS
init-checkconf [OPTIONS] file
init-checkconf [OPTIONS] -f file
DESCRIPTION
Determine if specified Upstart init(8) job configuration file is valid.
By default, two checks are performed:
o Ensure Upstart can parse overall file successfully
o Ensure all script sections are parseable by shell
OPTIONS -d , --debug
Show some debug output.
-f file , --file=file
Specify job configuration file to check.
-i path , --initctl-path=path
Specify path to initctl(8) binary.
-s , --noscript
Do not check script sections.
-x path , --upstart-path=path
Specify path to init(8) binary.
-h , --help
Display usage statement.
AUTHOR
Written by James Hunt <james.hunt@ubuntu.com>
LIMITATIONS
o This program will not run as the root user.
o It is not possible for a user to run multiple simultaneous instances of this program.
REPORTING BUGS
Report bugs at <https://launchpad.net/upstart/+bugs>
COPYRIGHT
Copyright (C) 2011 Canonical Ltd.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO sh(1)init(5)init(8)Upstart 2011-04-06 init-checkconf(8)