Search Results

Search: Posts Made By: amitranjansahu
1,591
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...
2,036
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,499
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
1,639
Posted By amitranjansahu
for (( i = 1 ; i <= $v1; i++ ))
for (( i = 1 ; i <= $v1; i++ ))
Forum: Solaris 05-02-2012
7,836
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
7,836
Posted By amitranjansahu
check the /etc/shadow file if your acc is locked .
check the /etc/shadow file if your acc is locked .
7,302
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
1,198
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
1,083
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
3,564
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
9,824
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
3,564
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
18,237
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
18,237
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
38,760
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
5,773
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
6,683
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
6,683
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
9,824
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
9,824
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
7,904
Posted By amitranjansahu
vpath=`pwd`
vpath=`pwd`
Forum: Red Hat 11-29-2011
4,107
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
901
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
4,107
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
982
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

 

Featured Tech Videos

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