Search Results

Search: Posts Made By: baanprog
2,945
Posted By baanprog
Diff on remote servers file systems
Iam trying to compare two file systems on two hosts basically to check them to be in sync

I dont have rsync so trying to use diff

Let me know how to do it....

Thanks
Forum: HP-UX 02-22-2014
3,612
Posted By baanprog
Trying to find out what killed the process
The log file of the process shows when it was terminated but we want to know who terminated it.

there were many users in the system at that time but none with amdin rights and no fresh logins...
Forum: HP-UX 02-22-2014
3,612
Posted By baanprog
System not responding and Automatic process kill
Hi All,

One of our servers stopped responding , unable to take any logins into it, the response is almost nil...later it resumed

Also during this time one of our application processes which...
4,263
Posted By baanprog
Only First time?
this it does onyl first time is it? Later on it is a permanent change and it does not ask for confirmation?
4,263
Posted By baanprog
scp without first time key generation and confirmation
Hi All,

I have setup ssh keys for a user to transfer files without password between two hosts. But still the first time scp asks for confirmation and generates a key
Due to this our jobs are...
2,349
Posted By baanprog
I think I want to join if possible the below...
I think I want to join if possible the below solution


while IFS="=" read VAR VALUE
do
[ -z "$VAR" ] && continue # Ignore blank lines
case "$VAR" in
WHOA*) ;;

...
2,349
Posted By baanprog
I have already posted sample input with which...
I have already posted sample input with which ones I want to see, please see my earlier post

I want to remove only empty lines and lines starting with #
Also line with the substring WHOA

where...
2,349
Posted By baanprog
subvar="${line:0:4}" gives bad substitution error...
subvar="${line:0:4}" gives bad substitution error on command line

Well Iam trying to get a substring from VAR which is WHOA and avoid those lines

how to get only WHOA from line WHOA= %s : %S -...
2,349
Posted By baanprog
Let me add little mroe to this
Thanks a lot you seem to be making sense

Let me get you what Iam doing and you can put the whole thing may be, if that is not asking too much

Iam doing below
Want to remove empty line
Want...
2,349
Posted By baanprog
File Processing: Handling spaces in a line
Hi All,

Iam trying to get a file processed and some lines have spaces...the below is not working

Want to remove empty line
Want to remove lines that start with #
Avoid line with substring...
1,511
Posted By baanprog
What about using tar?
Can anyone give an example of how to use tar to achieve this?
1,511
Posted By baanprog
Clone mounts as is
Hello,


Iam trying to clone AS IS two mounts like below


/class_test/sa
/class_dev/fd


from one server onto another.

I want to use tar and gzip to compress. Please let me know the...
3,172
Posted By baanprog
Corona688 you could be little gentler in your...
Corona688 you could be little gentler in your replies...

I did remove the $ and still it did not work so I kept it back

now I think I will try the new way....thanks all to your replies...
3,172
Posted By baanprog
working in if but not in file name
It working in the if condition like below

{ if (($5 == PMONTH) && ($6 == PYEAR)) print $0


but not in the file name like below

"/dummy/history/history.$PMONTH.$PFYEAR";
...
3,172
Posted By baanprog
Passing Global Shell variables to awk
Hi All,

Iam trying to pass global shell variables and is not working

Main script is like below


CYEAR=`date +"%y"`
CFYEAR=`date +"%Y"`
CMONTH=`date +"%m"`

if [ $CMONTH -eq "01" ]
then...
1,275
Posted By baanprog
Explain what you mean by asynchronously
Can you explain what you mean by asynchronously??
1,275
Posted By baanprog
Calling shell script within shell script
Hi All,

I have a simple script that has 8 more scripts being called within it.
Like below

Main Script.sh has within it like below
-----------------------

Script1.sh
Script2.sh
Script3.sh...
14,356
Posted By baanprog
Copy directory tree with files
Iam in the process of copying a directory with thousands of directories and files into a new directory.

I need to preserve permissions, owner, group, date and timestamps, everything.

Iam using...
3,314
Posted By baanprog
Calling scripts within script
Hi,

I have written a some six scripts to move large files and re-size them. This has been done step by step, taking backup, creating the new files, merging the files, removing the temporary files...
2,091
Posted By baanprog
Filtering Log file
Hi,


Iam trying to filter a log file in the below format

|fffff|hhhhh|ffff|dd|mm|yy|hh|min||dd|mm|yy|hh|min


the first set of |dd|mm|yy|hh|min is when the application ran
the second set...
2,404
Posted By baanprog
no logrotate
Iam not trying to use a tool.

Iam trying to develop a script myself.

Any other ideas will be appreciated.

Thanks
2,404
Posted By baanprog
File Handling
Hi,

I have a log file which runs into 3 to 5 GB.

We store this typically for 6 months. When a new month starts we move the previous month into a 9 month back up log (file.9m) and delete the...
7,779
Posted By baanprog
Append to beginning of a file
Hi,

I have a file x which is being upated continuously.

I want to add file y in the file x but at the beginning of file x.

file x file y After commands file x

eeee ...
2,115
Posted By baanprog
Dont have it in my OS
Thanks for your response.

Dont have logadm in HP-UX 11.11
2,115
Posted By baanprog
Backing up Log file
Hi,

Iam trying to create a back up file for a log file which is being continously updated.

Is there a way to backup without loosing the log, while the back up is also up to date?


If i try...
Showing results 1 to 25 of 40

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