I have a file 'abc'like:
root#cat abc
no selected
root#
I need to compare the content of this test with the string 'no selected'. I do the following:
if [cat abc == "no selected"]; then
echo 1
else
echo 0
fi
but it doesn't work. How can I compare the file and that string?
Thank you...
Hello everybody,
I need to get the process names 'tt' in a script. For this reason I was doing:
ps -ef |grep tt |grep -v tt | awk '{print $9}'
but I have a problem because if the process has been started today the process name is in 8th column, but if it has been started another day before...
Hi,
First, sorry for my basic questions but I am new in databases. I would like to know if when I create a procedure, I must do 'commit'. I mean:
CREATE OR REPLACE Procedure my_procedure
...
END
commit;
Also, I would like to know what view or how I can see the content of my procedure.
Thank...
Hi,
I would like to know how I can read a specific string and then the following strings of the same row change them by other strings.
For example:
If I have a file like:
aa 22 33
bb 33 23
bt 34 98
a4 99 100
aa 44 66
f6 90 09
...
I need to change all the strings 'aa' the following columns...
Hi everybody,
I would like to know how I can use awk command for when it reads a specific string then change the following other strings of the same row.
For example:
If I have a file like:
aa 22 33
bb 33 23
bt 34 98
a4 99 100
aa 44 66
f6 90 09
...
I need to change all the strings 'aa' the...
Hi,
My admintration's account of the content_db'url has become locked and I try to unlock.
I've done:
$oidpasswd connect=mySID unlock_su_acct=true
OID DB user password:
OID super user account unlocked successfully.
for unlock it, but it doesn't work. How I can unlock it?
Thks.
I have a Solaris 5.8 and I want to do an user ssh login without password to this machine. I have configured it, but it doesn't work:
ssh -v userA@mymachineA
....
debug1: authentications that can continue: publickey,password
debug1: next auth method to try is publickey
debug1: try pubkey...
Hi,
I need to look the IPs of some machines using korn shell. I try:
serversips="server1 server2 server3"
for i in `ssh aaa@$serversips`
do
netstat -i
done
but it doesn´t work.
Hi,
I need install a sftp server. My sshd_config file has
# override default of no subsystems
Subsystem sftp /usr/lib/ssh/sftp-server
Sshd daemon is running:
aa:/ # ps -ef |grep sshd
bb 5800 1 0 10:03 ? 00:00:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
So I...
Hi,
I have problems with my LDAP Server, because I have ldap_search_ext_s failed. It is due to time limit exceeded, but how I could resolved it?
Thanks.
I can´t connect by ssh from A server to B server without password.
I have the message:
[A].psw:/aa/psw/.ssh> ssh -v B
...
debug1: next auth method to try is publickey
debug1: try privkey: /aa/psw/.ssh/identity
debug1: try privkey: /aa/psw/.ssh/id_rsa
debug1: try pubkey: /aa/psw/.ssh/id_dsa...
Hi,
I have a FileSystem bad mounted:
/dev/ /XXX/abcd
and I need mount on /dev/my_lv and not on /dev/
Nowadays, my FS /XXX/abcd see all files of /dev/.
If I make a logical volum my_lv as: crfs -A yes -d my_lv -m /logs/abcd -v jfs, where my logical volum is created?
If I do umount...
Hi,
I am working with a Solaris server. I have a problem when I use ps -ef on Solaris. Each process which run on server no show all path, it only show a line. What options I should put to ps for I have the same output that when ps -ef is execute on Linux?
Thanks.
Hi,
I have to do a same query time to time. This query only return a value. How can it value is returned to a variable in batch script?.
For example:
set my_value = sqlplus user/pass @query
but it doesn't work.
Thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.