12-09-2016
Thanks for your all replies !
Last edited by Arnaudh78; 12-09-2016 at 12:28 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
root->echo $PATH
/usr/ccs/bin:/opt/sfw/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
root->find / -name gcc
/usr/local/bin/gcc
/usr/local/doc/gcc
root->which gcc
no gcc in /usr/sbin /usr/bin
Why cant it find gcc - the path looks okay doesnt it?
I am running solaris 9 - and... (7 Replies)
Discussion started by: frustrated1
7 Replies
2. Shell Programming and Scripting
hi all
i have joined new to the group.
i have set an variable in my bashrc file.
.bashrc
PROGHOME=/home/braf/braf/prog
export PROGHOME
but while using it in my shell script its path is not taken and i had to explicitly give the export command to set the path.
in my script... (8 Replies)
Discussion started by: krithika
8 Replies
3. Shell Programming and Scripting
How can i add a varying filename at the end of a constant file path?
Eg:
Variable containing file name is varfile (say varfile=newfile)
File path is C:\Test\
I want to access newfile which can be done as
C:/\Test/\newfile
But instead of directly accesing the newfile i want to access it... (2 Replies)
Discussion started by: sandeep_hi
2 Replies
4. AIX
Hi everybody
I looking the put the result of a commane to a Variable
i explain
here is my command:
FJTS_UK:root:common@ukaix3:/> cat sortie | grep "^"| awk '{ print $1}'
15
FJTS_UK:root:common@ukaix3:/>
sortie is a texte file
I want to put the result of commande in a... (1 Reply)
Discussion started by: kykyboss
1 Replies
5. Shell Programming and Scripting
I have a file that contains the following lines
the brown quick fox
jumped over
the white laze dog
0123456789
I wanted to put the contents of this file into a variable so I used this code:
VAR_LIST=`cat $2`
where $2 is the file name passed as an argument to the script
If I... (3 Replies)
Discussion started by: Nomaad
3 Replies
6. Shell Programming and Scripting
For example, I have a simple text file
note:
this a note
a simple note
a very very simple notewhen I use this command,
temp=$(cat "note.txt")then I echo temp, the result is in one line.
echo $temp
note: this a note a simple note a very very simple noteMy variable doesn't have newline.
How... (7 Replies)
Discussion started by: 14th
7 Replies
7. Shell Programming and Scripting
Hi i have need of read a file value with cat command and remove first 2character for example cat /sys/class/rtc/day
0x12
Remove char
12
And put this value in a variable
is possible with a script thanks for help (6 Replies)
Discussion started by: enaud
6 Replies
8. Shell Programming and Scripting
I want to pattern match only path part from below and replace them with new path string.
LoadModule jk_module /fldrA/fldrBaf/fldrCaa/modules/mod_jk.so
JkWorkersFile /fldrA/fldrBaf/fldrCaa/config/OHS/ohs1/workers.properties
JkLogFile... (4 Replies)
Discussion started by: kchinnam
4 Replies
9. Shell Programming and Scripting
i am having some bash script which must use first sentence of the file. For example i have file which content is:
test 213
So I must use word test into my bash script, and put it into variable.
I am using a one variable named value
value=$(</home/rusher/test.txt)
so instead using test.txt... (1 Reply)
Discussion started by: tomislav91
1 Replies
10. UNIX for Beginners Questions & Answers
Hello all,
I am EXTREMELY new to using bash and I have a bit of a problem: I'm trying to set up a shell script that can
1.) take one of several giant files off of an external hard drive
2.) use it as input for scripts on my laptop's hard drive
... (3 Replies)
Discussion started by: machine_spirit
3 Replies
LEARN ABOUT DEBIAN
ident2
ident2(8) System Manager's Manual ident2(8)
NAME
ident2 - An advanced ident daemon
SYNOPSIS
ident2 [options]
DESCRIPTION
ident2 is an advanced ident daemon, which can run as an inetd service or on it's own. It has various features such as user defined and ran-
dom replies, extensive logging, and full administrative control.
OPTIONS
The program follows the usual GNU syntax command-line unless it is unsupported on your system. GNU options begin with two dashes(`-') and
have much more descriptive names.
-h, --help
Show summary of options.
-u, --usage
Shows example command lines
-v, --version
Show version information
-l, --license
Show licensing information
-a, --force-inetd
Force inetd mode, if autodetection isn't working.
-d, --force-daemon
Force standalone daemon, if autodetection isn't working.
-i, --use-user-ident
Allow user defined ident replies. Just do a echo 'ident ar' > ~/.ident to change your ident reply.
-y, --user-reply-file
File ident2 should look for in user's homedir for replies. Default is ~/.ident
-n, --allow-noident-file
Disable replies for user if user has a ~/.noident file. This behavior is disabled by default.
-o, --client-timeout
Clients timeout after this many seconds
-s, --dont-change-uid
Ident2 will normally try to change it's uid to something less privileged if it finds it's uid to be 0. This option disables this
behavior altogether.
-r, --always-random
Always send a random reply, regardless of what kind of request the client made. This is useful for abusing the ident protocol as
well as assisting outgoing IP masqueraded connections.
-m, --daemon-maxclients
Daemon-only: Accept no more than this many connections at a time.
-p, --daemon-port
Daemon-only: Bind this port, instead of 'auth' aka 113
SEE ALSO
inetd(8), inetd.conf(5)
AUTHOR
This manual page was written by Alexander Reelsen <ar@rhwd.net>, for the Debian GNU/Linux system (but may be used by others).
GNU ident2(8)