Search Results

Search: Posts Made By: Catullus
1,639
Posted By Catullus
Sorry - I'm using Solaris 10 and 11. The man page...
Sorry - I'm using Solaris 10 and 11. The man page explains it better than I can:

I use it because there is a limit on the number of files that tar cf accepts, that the E flag extends.

It hadn't...
1,639
Posted By Catullus
Capture error before pipe
Hi,

I have a script that runs a tar command to standard out then pipes to a gzip:

tar cfE - * | gzip -c > OUT.gz

At the moment, even if the tar fails (e.g. because of lack of disk space),...
5,446
Posted By Catullus
Rsync - delete extra files in Destination without synchronising directories
I have a script that synchronises a directory to a DR server, but to improve the time, I actually use rsync to transfer files *[123] in one batch and also
*[456] in another batch - both batches...
7,186
Posted By Catullus
Using Rsync as root in Solaris 11 for DR
Hi,

I am working on a Solaris 11 server for the first time and am trying to set up the DR server. Usually I use trusted rsync between Production and DR to copy changed files to the latter, but...
2,760
Posted By Catullus
Find list of files missing read & execute permission
Hi,

I'm writing a post-upgrade script and I want to find which files don't have read and execute to everyone.

I can run a find . ! -perm, but then I have to use a list of the possible...
10,891
Posted By Catullus
Great! Now I understand it, I'm much happier...
Great! Now I understand it, I'm much happier using this syntax.

Thanks for your quick reply
10,891
Posted By Catullus
xargs expr ...+
I would like to use expr on stdin, but I know it doesn't work. I have seen this syntax:
ls -l|wc -l | xargs expr -3 +

and it seems to do what I need, but could someone explain what the final + is...
1,723
Posted By Catullus
The code from Balasejuri mostly worked, but...
The code from Balasejuri mostly worked, but omitted the very last "processing data" line.

Scrutinzer's code worked perfectly.

Thanks to both for your quick replies. I can stop tearing my...
1,723
Posted By Catullus
Print first and last line from multiline record
Hi - I'm new to working with multiline records and I'm going nuts trying to do something that seems simple.

Input:
Tue May 1 14:00 Header Record 1 is valid.
Tue May 1 14:00 processing data to...
20,326
Posted By Catullus
If you mean set it to 755, then it is already...
If you mean set it to 755, then it is already that on both servers for $HOME; I have set $HOME/.ssh to 700.

Does anyone know what these debug messages indicate - to me, it looks like the key is...
20,326
Posted By Catullus
It went on to: debug1: Next authentication...
It went on to:
debug1: Next authentication method: keyboard-interactive
and then it did ask for a password.
6,285
Posted By Catullus
If /u/jboss-6.1.0.Final/bin/jboss_init_wise$i.sh...
If /u/jboss-6.1.0.Final/bin/jboss_init_wise$i.sh start hangs, then that is where the problem lies. You have to examine that script to see why. Try running it with a debug flag - e.g. if it's a korn...
6,285
Posted By Catullus
Test the loop by just calling a pwd and make sure...
Test the loop by just calling a pwd and make sure the loop exits:

if [ "$JBOSS_CMD_TYPE" = "start" ]; then
for i in $JBOSS_INST_ARGS; do
pwd
done
fi

If this succeeds, then you...
6,285
Posted By Catullus
Sound silly - but have you remembered to add a...
Sound silly - but have you remembered to add a final fi to close the if statement.

Also, try using braces for $i:

/u/jboss-6.1.0.Final/bin/jboss_init_wise${i}.sh start;
20,326
Posted By Catullus
SSH public key failing without error message
My password-free ssh connection has worked in the past but has stopped working and I can't get it going again.

The files in .ssh on both source and target are set to 600:
drwx------ 2 ingres ...
2,171
Posted By Catullus
Doesn't look like I have the new KSH, because I...
Doesn't look like I have the new KSH, because I get the error "v[3]: "${!VAR}": bad substitution".

Ksh is my preferred (because familiar) shell.
2,171
Posted By Catullus
Test variables exist using a for loop
I am setting a number of variables in my script and I would like to test they exist by using a for loop.
e.g.
VAR1=abc
VAR2=xyz
for i in VAR1 VAR2; do
if [ -z $i ]; then
echo Alert
fi
done...
Showing results 1 to 17 of 17

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