Search Results

Search: Posts Made By: vinil
18,155
Posted By vinil
Will you please advise how to do so ?
Will you please advise how to do so ?
18,155
Posted By vinil
As i mentioned the environment remains HP.There...
As i mentioned the environment remains HP.There is no scope of any installation.
18,155
Posted By vinil
Seeking Alternative for diff in hp
Hi ,

I have to use HP-unix OS to get difference between 2 files.while i tried a piece of code in other OS(linux/unix) as below, it worked fine & the output is desired one.

diff...
4,027
Posted By vinil
gunzip -l file.gz will help you.
gunzip -l file.gz will help you.
Forum: Solaris 03-06-2015
22,767
Posted By vinil
yes i just realized that as its been created in...
yes i just realized that as its been created in SVN repository, it needs to be extracted in a different manner than usual.
svnload admin <path_to_extract> < file.dump

thanks all for your help
Forum: Solaris 03-04-2015
22,767
Posted By vinil
when i did as mentioned above i found then type...
when i did as mentioned above i found then type as follows

<file_name>: commands text

I suspect it is a text file then.Please correct me if wrong
Forum: Solaris 03-03-2015
22,767
Posted By vinil
ufsrestore ta <file_name>.dump Volume is not in...
ufsrestore ta <file_name>.dump
Volume is not in dump format
Forum: Solaris 03-03-2015
22,767
Posted By vinil
Extract content of .dump file
We have been provided a .dump file.The need is to extract the contents(may includes files and folder).
ls -lZ didnt help me as Z is not a valid option.
How to extract the file contents ?
3,749
Posted By vinil
Try this date -d'yesterday' +%Y%m%d
Try this
date -d'yesterday' +%Y%m%d
2,893
Posted By vinil
Got an error in above code .There is no variable...
Got an error in above code .There is no variable named var defined in your code.Re-check that.Below works as expected


#!/bin/bash
#var=1024
mem=`(cat /proc/meminfo | grep MemTotal)`...
Forum: Linux 06-23-2014
5,154
Posted By vinil
uname provides you information of operating...
uname provides you information of operating system including its current version, including version info of Kernel.
who provides you information of all the concurrent user who are currently logged...
Forum: Linux 06-23-2014
54,040
Posted By vinil
1 Create one script on remote machine that does...
1 Create one script on remote machine that does the required job.
2 Do this from local machine ssh -q <remote_server> <path_to_script>
3,037
Posted By vinil
use unzip -v <file_name.zip> to read the contents...
use unzip -v <file_name.zip> to read the contents of zip file.May be it contains 0 byte size file.
thanks
15,778
Posted By vinil
As far as i understand your query, you may use...
As far as i understand your query, you may use cron tab to run run the script on specified day.I dont understand the worth of calender here. So please give a detail query to assist you more.
Thanks
4,186
Posted By vinil
ssh -q <server_name>| netstat -ani | grep -i <IP>...
ssh -q <server_name>| netstat -ani | grep -i <IP> | awk '{print $1}'

Failed again. Can some one correct me or provide me better code that can check particular on specific server and print if the...
4,186
Posted By vinil
I will try this for you and post the update....
I will try this for you and post the update. Meanwhile, please note that the variable mentioned ($IP and $IP_2)are different server names used in production for client.I have already defined their...
4,186
Posted By vinil
ssh -t -t $IP|v1=`netstat -ani|grep $IP_2|awk...
ssh -t -t $IP|v1=`netstat -ani|grep $IP_2|awk '{print $1}'`;
the issue is this is not running at all. While debugging, it is giving same result upon changing the value to be grep
4,186
Posted By vinil
Checking LB status.. stuck in script syntax of code
#!/bin/ksh
#This script will check status of load balancer in AIX servers from hopbox
#Steps to do as folows :
#Login to server
#netstat -ani | grep <IP>
#check if the output contains either lo0...
5,364
Posted By vinil
thanks all. Last 2 code snippet provided above...
thanks all. Last 2 code snippet provided above works . Thanks again.
5,364
Posted By vinil
yes it gives output to me also but it includes...
yes it gives output to me also but it includes 40% used space in output as well for the above while expected is 50%+ only.
5,364
Posted By vinil
awk to parse df output
Output of the below code includes unmatched date.Please correct it
df -k|awk '$4>50 {print $1, "\t"$4,"\t" $7}'


It gives output less than 50% also.
5,390
Posted By vinil
the above is not working Error message as i...
the above is not working
Error message as i found :
5,390
Posted By vinil
Find and touch in Shell
Hello All

Below is code snippet i am using
find . -name "*.txt" -mtime +5 -exec -touch "*.txt" {} +

The purpose is to make the files with name *.txt to be of size 0 kb if it is older than 5...
1,769
Posted By vinil
thanks it helped and worked :b:.Please close this...
thanks it helped and worked :b:.Please close this thread .
1,769
Posted By vinil
[Solved] Seeking assistance in Shell script
#!/bin/bash
>error_log
for s in `cat s.txt`
do
uptime $s >>error_log
echo $s >>error_log
done


The above code produce output with server name and its uptime in 2 different lines .My...
Showing results 1 to 25 of 48

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