Search Results

Search: Posts Made By: just4fundoit
Forum: Solaris 12-23-2009
14,965
Posted By just4fundoit
There is a good reason why rsh/rlogin/rcp are...
There is a good reason why rsh/rlogin/rcp are disabled, and why scp/ssh are preferred! In anycase if you still want to enable the r* services
If its pre Solaris-10
1) You need to uncomment the...
7,706
Posted By just4fundoit
ps -elf|more The Field under STIME tells you...
ps -elf|more
The Field under STIME tells you how long the process been running.
2,232
Posted By just4fundoit
find <DIR_NAME> -m1 -exec grep "SEARCH_PATTERN"...
find <DIR_NAME> -m1 -exec grep "SEARCH_PATTERN" '{}' \; -print
10,707
Posted By just4fundoit
Unix 101: 1)The 1st line you are placing in...
Unix 101:
1)The 1st line you are placing in a shell script is which shell you want to run the command in.
2)if you trying to run a script as "sh script" you are saying run the set of ...
2,232
Posted By just4fundoit
find <DIR_NAME> -exec grep "SEARCH_PATTERN" '{}'...
find <DIR_NAME> -exec grep "SEARCH_PATTERN" '{}' \; -print
10,707
Posted By just4fundoit
Thats the issue with the emulators. Dont get...
Thats the issue with the emulators. Dont get confused, emulators are not real shells, they are made to mimic some of the qualities of shells ! If you try that on a Bash/sh/ksh/csh it will works ...
13,508
Posted By just4fundoit
cat csvfile | awk -F, '{print $6}' |sed...
cat csvfile | awk -F, '{print $6}' |sed 's/"//g'
6,188
Posted By just4fundoit
Are there any other Variables you want to use...
Are there any other Variables you want to use inside the users initialization files? Else you could just do
su oracle -c program
instead of
su - oracle -c program

The difference is in...
3,814
Posted By just4fundoit
How about trying to use Sudo?
How about trying to use Sudo?
3
2,076
Posted By just4fundoit
Just a quick look at your code there are some...
Just a quick look at your code there are some mistakes and it would never run that way
Try replacing "!#bi/ksh" with "#!/bin/ksh"
then you could do something like listed below should give...
61,951
Posted By just4fundoit
You dont need a execute on the .bashrc as...
You dont need a execute on the .bashrc as long as you have read permission what ever commands you put inside it will be executed at login if you are having bash as your login shell.
Peace
45,975
Posted By just4fundoit
Well you could do some thing like awk ...
Well you could do some thing like
awk '/ifile/&&/INPUT/ {print $0}' FILENAME|grep -v DATA
8,125
Posted By just4fundoit
What awk '{print "kill -9 "$2}' is doing is ...
What awk '{print "kill -9 "$2}' is doing is just taking the input and printing out kill -9 field2 (delimited by 1 or more spaces/tabs), in your case the field2 is the PID of the process ...
45,975
Posted By just4fundoit
You have to use egrep for that, for ex: egrep...
You have to use egrep for that, for ex:
egrep -e "Jack|Jill|friends"
11,165
Posted By just4fundoit
Try this awk -F= '{print $2","$3","$4}'...
Try this
awk -F= '{print $2","$3","$4}' INFILE.txt |awk -F, '{print $1"_"$3","$5}'
2,503
Posted By just4fundoit
I am not sure if you can use two characters as a...
I am not sure if you can use two characters as a delimiter in AWK. I would try this below to get the ids
echo 'uniquemember=uid=315kthatch,ou=people,ou=client315,dc=paisleyhosting,dc=com' | awk...
8,125
Posted By just4fundoit
you could try then ps auxwww |grep -i...
you could try then
ps auxwww |grep -i entourage|awk '{print "kill -9 "$2}' |sh
48,086
Posted By just4fundoit
After re-reading what you want, This is how I...
After re-reading what you want, This is how I would achieve that in Solaris,
ps -elf|grep -v UID |awk '{print "ptree " $4}'|sh
48,086
Posted By just4fundoit
On Solaris you would do something like ptree...
On Solaris you would do something like ptree <PID>.
8,125
Posted By just4fundoit
Try This!
ps -elf|grep -i entourage|awk '{print "kill -9 "$2}' |sh
That should do the trick.
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 07:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy