Search Results

Search: Posts Made By: amitranjansahu
4,280
Posted By amitranjansahu
The basic logic is bellow to find and rename...
The basic logic is bellow to find and rename files having a matching string. You can add multi sreach string as per your requirement.


for filename in `grep -l AAA /root/ars/*`;
do...
4,061
Posted By amitranjansahu
ssh -n -l username serveradd ". ~/.profile...
ssh -n -l username serveradd ". ~/.profile >/dev/null 2>/dev/null;print y | \${HOME}/bin/script.sh >/dev/null 2>/dev/null" &


This is an example asuming that you source env variables from...
Forum: Programming 06-06-2012
1,995
Posted By amitranjansahu
check the thread it will help you ...
check the thread it will help you

https://www.unix.com/programming/100347-declare-variable-mysql.html
2,622
Posted By amitranjansahu
for (( i = 1 ; i <= $v1; i++ ))
for (( i = 1 ; i <= $v1; i++ ))
Forum: Solaris 05-02-2012
12,936
Posted By amitranjansahu
most likely this is due to expiry or locking of...
most likely this is due to expiry or locking of account. Check the bellow link and give a try .

CRON: bad user - Sun Solaris (http://www.justskins.com/forums/cron-bad-user-149310.html)
Forum: Solaris 05-02-2012
12,936
Posted By amitranjansahu
check the /etc/shadow file if your acc is locked .
check the /etc/shadow file if your acc is locked .
11,417
Posted By amitranjansahu
Check this out ssh-keygen: password-less...
Check this out

ssh-keygen: password-less SSH login (http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html)
Forum: UNIX and Linux Applications 02-08-2012
2,634
Posted By amitranjansahu
You can use cron to schedule jobs . Please...
You can use cron to schedule jobs . Please specify your exact requirement with example.
Forum: UNIX and Linux Applications 02-08-2012
2,188
Posted By amitranjansahu
use mailx for sending mail . You can schedule...
use mailx for sending mail . You can schedule this in cron or your script .
Forum: Solaris 01-18-2012
4,561
Posted By amitranjansahu
You need to clear your fundamentals in UNIX first...
You need to clear your fundamentals in UNIX first . I will suggent you study the PATH variable (what, why and how to set ) . The path is like where you search your exe or commands. You can check in...
Forum: Red Hat 01-18-2012
14,993
Posted By amitranjansahu
You can check the dns server entry in...
You can check the dns server entry in /etc/resolve.conf file . If the dns ip is not reachable then its getting delayed. If you are not using dns then just comment out the enrties in that file.
Forum: Solaris 01-18-2012
4,561
Posted By amitranjansahu
you have not set your path . normaly it should be...
you have not set your path . normaly it should be in /usr/sbin dir.

Either u add that to your pathelse u can give the full path to execute


/usr/sbin/ping x.x.x.x
Forum: Solaris 01-17-2012
22,555
Posted By amitranjansahu
a system reboot is required after setting the...
a system reboot is required after setting the locale. After the restart please check the output of locale command


#locale
Forum: Solaris 01-17-2012
22,555
Posted By amitranjansahu
May be your locale is not set to en_US.UTF-8 ....
May be your locale is not set to en_US.UTF-8 . Check the /etc/default/init file . You need to add the desired locale in this file. What is the content of /etc/default/init file ?
Forum: Solaris 01-09-2012
60,986
Posted By amitranjansahu
Is there any external file system mounted on your...
Is there any external file system mounted on your machine ? If so may be one of the remote files system is taking time to respond.

whats the out put of the df -kh
Forum: Solaris 12-21-2011
7,165
Posted By amitranjansahu
you need to take the logs for the cron job . Most...
you need to take the logs for the cron job . Most likely its a env variable issue as cron does not set your env variables by default. You need to check the cronrun log file to find the details ....
Forum: Solaris 12-14-2011
7,769
Posted By amitranjansahu
It is OK if you want this JAVA_HOME path for all...
It is OK if you want this JAVA_HOME path for all users. If you want to configure for the particular user add it in your shell profile (.bashrc or .kshrc file)


# echo $SHELL


To know your...
Forum: Solaris 12-14-2011
7,769
Posted By amitranjansahu
Add the the variable in the .profile file in home...
Add the the variable in the .profile file in home dir.


JAVA_HOME=/usr/jdk/jdk1.6
export JAVA_HOME
Forum: Red Hat 12-07-2011
14,993
Posted By amitranjansahu
after you login create a .hushlogin file in home...
after you login create a .hushlogin file in home dir

touch .hushlogin

Usually creating a ".hushlogin" file in your home directory will disable the quota checks.
Forum: Red Hat 12-07-2011
14,993
Posted By amitranjansahu
Please check the setting in the nsswitch.conf...
Please check the setting in the nsswitch.conf file in /etc folder




passwd: files
shadow: files
group: files
#hosts: db files nisplus nis dns
hosts: files dns
13,797
Posted By amitranjansahu
vpath=`pwd`
vpath=`pwd`
Forum: Red Hat 11-29-2011
5,932
Posted By amitranjansahu
are you able to connect a sysdba ...
are you able to connect a sysdba


sqlplus '/ as sysdba'
Forum: Solaris 11-25-2011
1,405
Posted By amitranjansahu
can you please post what exact error you are...
can you please post what exact error you are getting . use -v option while doing ssh so that you can get the detailed log of the failure.
Forum: Red Hat 11-25-2011
5,932
Posted By amitranjansahu
The Oracle System ID (SID...
The Oracle System ID (SID (http://www.orafaq.com/wiki/SID)) is used to uniquely identify a particular database on a system.

your ORACLE_SID should be the PRUEBADB
1,511
Posted By amitranjansahu
use -w option for whole word search ...
use -w option for whole word search


grep -w 275 myfile.txt


check man page of grep for more details
Showing results 1 to 25 of 499

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