Search Results

Search: Posts Made By: JerryHone
1,651
Posted By JerryHone
Environment variable substitution in Linux make
I know that I can do this in bash
ver=${VERSION:-$DEFVERSION}
so ver is $VERSION if it's set but $DEFVERSION if $VERSION isn't set

I want to do the same thing as a macro in a Makefile and can't...
2,528
Posted By JerryHone
Try creating two files with the required time...
Try creating two files with the required time stamps using the touch command and then retry the find using -newer
e.g.
touch -t 201001010001 t20100101
touch -t 201001060001 t20100106
find -type f...
7,772
Posted By JerryHone
Server. Does it make a difference?:confused:
Server. Does it make a difference?:confused:
1,400
Posted By JerryHone
Your while loop will re-enter the same piece of...
Your while loop will re-enter the same piece of code if you don't increment the step count, so why not increment it in the "No Error" if block, rather than outside the case statement.

By the way,...
7,772
Posted By JerryHone
Init.d script stdout location
I'm looking into a Solaris(S10) startup problem, with a script configured to run in /etc/rc3.d. It's written to output trace information to a logfile using tee, but the file itself is clearly not...
2,829
Posted By JerryHone
I've had various issues with trying to use mtime...
I've had various issues with trying to use mtime and ctime in the past, so my usual method is to touch a file with a date time stamp of, say, a year ago
touch -t 20130813 ref_fileand then use
find...
1,957
Posted By JerryHone
A few things... First, set -x in the code...
A few things...

First, set -x
in the code or #! /bin/ksh -x
as the first line will provide verbose debug output and typically makes things much more obvious.

Secondly, you would normally use...
1,946
Posted By JerryHone
Alternatively - not better, but arguably easier...
Alternatively - not better, but arguably easier to understand, and works in Bourne shell as well

if [ "$hostname" = "red" -o "$hostname" = "black" -o \
"$hostname" = "green" -o "$hostname"...
1,957
Posted By JerryHone
So, you're incrementing the linecount and then...
So, you're incrementing the linecount and then using that to as an argument for the 'head' command, which will then return that number of lines from the top of Usernames - is that really what you...
4,785
Posted By JerryHone
Add a 'set -x' into the script to see what it's...
Add a 'set -x' into the script to see what it's doing...
2,736
Posted By JerryHone
You could try symbolically linking the .c file to...
You could try symbolically linking the .c file to the .syn file rather than copying it, so as soon as the .syn is updated, the .c tracks it, or you could write the rules in your Makefile to deal with...
3,545
Posted By JerryHone
ipnodes v hosts
What's the technical difference between an ipnode and a host.

I have a problem that my Solaris host has a one hour delay in tracking a 3DNS change elsewhere in the network (ping -s alias).
...
Forum: Solaris 10-17-2011
1,616
Posted By JerryHone
SIGPWR on local zone
Can anyone explain how you can get a SIGPWR signal on a Solaris 10 local zone, but none of the other zones on the frame had a problem. :confused:
10,448
Posted By JerryHone
You've got 2 read statements with an echo between...
You've got 2 read statements with an echo between them. Putting them on the same line in the script won't make them behave as a single read.
You'll have to read the entire "min -- max" line in a...
2,337
Posted By JerryHone
I'm not sure what you're trying to achieve...it...
I'm not sure what you're trying to achieve...it will be very easy to place the array data in a hash in exactly the same way that you're printing your output, but you'd then need to print the hash, so...
3,454
Posted By JerryHone
You've used the -a option for tee which appends...
You've used the -a option for tee which appends instead of overwrites the file
1,377
Posted By JerryHone
The $$ in the gcc line, I believe, will be...
The $$ in the gcc line, I believe, will be different from the one in the sed line, so your sed will be operating on a different file from the one generated by the gcc. Try storing $$ into another...
1,217
Posted By JerryHone
I guess that the problem is due to the [[ ]] in...
I guess that the problem is due to the [[ ]] in the rotate function.
You need cat_while_read_LINE to return true (0) for the while loop to continue and false (non 0) for the while loop to...
2,297
Posted By JerryHone
Try running make with the -d option and see what...
Try running make with the -d option and see what it tells you.
14,273
Posted By JerryHone
Perl has a built in 'stat' command. Is this...
Perl has a built in 'stat' command. Is this available to you?
4,040
Posted By JerryHone
How about the curl "retry" option? curl...
How about the curl "retry" option?

curl returns an non-zero exit status when you get an error and a zero exit status when it works so to handle it in the shell, try...
while ! curl -T file.wmv...
Forum: IP Networking 02-17-2011
7,530
Posted By JerryHone
Thanks all
Thanks all
Forum: IP Networking 02-09-2011
7,530
Posted By JerryHone
IP Address Notation
In the IP addresses 193.32.156.0/24 and 169.183.0.0/16, what do the /16 and /24 represent?
7,359
Posted By JerryHone
How about... #!/usr/bin/perl my...
How about...

#!/usr/bin/perl


my @src=`ls /home/t1/`;
my @dest=`ls /home/t2/`;

SRC: foreach my $src (@src){
DEST: foreach my $dest (@dest) {
if ( $src eq $dest ){
...
2,499
Posted By JerryHone
Use quotes
a='03'
or using Korn shell print it out in the correct format
a=3
printf '%02d\n' ${a}
Showing results 1 to 25 of 253

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