Search Results

Search: Posts Made By: kapil514
3,805
Posted By kapil514
Find command can do this task for you.I request...
Find command can do this task for you.I request you to check man pages for more info.

find <<directory-path>> -type f -mtime +N -exec rm {} \;

N-No of days older file which you want to delete.
Forum: Red Hat 12-28-2015
2,016
Posted By kapil514
Vishal, It is not possible to provide the...
Vishal,

It is not possible to provide the exact reason why server rebooted with messages file .You can analyse the actual reason only with the kdump file.
You can go through below link ...
Forum: Red Hat 09-17-2015
1,362
Posted By kapil514
Environment Variable is showing different value
Hello All,

I am facing quite weird problem with JAVA_HOME variable.
When am running echo $JAVA_HOME on the machine it is showing verison 1.8 but when same thing is ran from other server via...
5,170
Posted By kapil514
I think your problem can be resolved by Jim...
I think your problem can be resolved by Jim suggestion using mtime option in find command .

For more clarity you need to analyse/ provide the couple of days files ls -ltr output and also provide...
1,757
Posted By kapil514
Thanks All, re installation of bash helped to fix...
Thanks All, re installation of bash helped to fix the issue.
1,757
Posted By kapil514
:~$ ot@Servername :~$ PS1='[\u@\h \W]$ ' ~]$...
:~$ ot@Servername
:~$ PS1='[\u@\h \W]$ '
~]$ ot@Servername

Tried above one but still its not working the whole command is clubbing with Prompt text not sure what is wrong.
1,757
Posted By kapil514
Hello , Please find the requested info: ...
Hello ,

Please find the requested info:


cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
#######
echo $SHELLp02
/bin/bash
##########
cat .bash_profile...
1,757
Posted By kapil514
Bash prompt is over lapping
Hello Guys,

I have facing problem with linux shell prompt .Am expecting my Bash prompt to be like below

[root@Servername tmp]but its showing like

~]$ ot@Servername and while typing the...
812
Posted By kapil514
Srkmish: I'm on vacation and dont have my test...
Srkmish: I'm on vacation and dont have my test machine with me to test the command and give you a perfect one.But I think your using single quote which should be replaced by back quote or $(your...
812
Posted By kapil514
@srkmish Try below one: ls -l...
@srkmish

Try below one:

ls -l /folder/abc* -al --time-style=+%D | grep $(date +%D) |awk '{print $7}'| xargs cat
11,778
Posted By kapil514
rbatte1 thanks for your suggestion its useful for...
rbatte1 thanks for your suggestion its useful for a learner like me.
11,778
Posted By kapil514
Thanks it worked fine for me
Thanks it worked fine for me
11,778
Posted By kapil514
Script runs good manually but failing via crontab
Hello Gurus,

I have written small script which will start the given service if its stop .Its running fine when manually executed but its unable to run from crontab.


#!/bin/bash...
7,545
Posted By kapil514
Basically was looking for some confirmation...
Basically was looking for some confirmation option with command reboot / shutdown to avoid accidental reboot of server alike with copy and remove commands
cp -i /rm -i
but as said by corona688...
7,545
Posted By kapil514
Thank you very much Corona..... ----------...
Thank you very much Corona.....

---------- Post updated at 01:39 PM ---------- Previous update was at 01:30 PM ----------

Am looking for the inbuilt command option of shutdown or reboot command...
7,545
Posted By kapil514
How to shutdown Linux box with user confirmation?
Hi Guru's
Am looking for linux reboot command which get executed after user confirmation .Can someone please help me with this.:confused::confused::confused:
6,504
Posted By kapil514
I think the Linux OS which your using is...
I think the Linux OS which your using is customized in such ways that you should use very basic commands due to security reason, check out the guys with who have build this server and who have root...
30,069
Posted By kapil514
Kohli I think below one may be helpful for you...
Kohli
I think below one may be helpful for you which copy from windows to Unix.

If windows to Unix then try :
pscp -l username Source_file Servername_with_domain_name:<Full_path>
Forum: Red Hat 11-10-2012
5,064
Posted By kapil514
Issue with mounting the file system .
Hi gurus,

Need your help ,
Am facing some issue with one of the ext3 file system.while rebooting it failed to mount fs after running fsck i tried manuall but still no luck.However i made the...
8,146
Posted By kapil514
Thanks a ton Corona ,it worked :)
Thanks a ton Corona ,it worked :)
8,146
Posted By kapil514
Thanks Corona ,Will try your suggestion :)
Thanks Corona ,Will try your suggestion :)
8,146
Posted By kapil514
How to disconnect telnet prompt with port no in script.
Hi Gurus,

I am trying to write a script for checking the status of linux servers by connecting via telnet with port no but to terminate i have to manually type "quit" .how can i terminate the...
2,040
Posted By kapil514
Need a script that generate a report from a combined sudoers
Hello Gurus

Is anyone aware of a script/utility that can be used to generate a report from a combined "sudoers" file for more than 100 servers in one go please?

Basic query: Which particular...
Forum: AIX 02-27-2012
99,317
Posted By kapil514
Thanks Corona688 for your valuable suggestion :)
Thanks Corona688 for your valuable suggestion :)
Forum: AIX 02-25-2012
99,317
Posted By kapil514
The below command is also useful , # kill -9...
The below command is also useful ,

# kill -9 `ps -fu admin |awk '{ print $2 }'|grep -v PID`
Showing results 1 to 25 of 25

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