Search Results

Search: Posts Made By: jp2542a
2,257
Posted By jp2542a
Look at the environment variable...
Look at the environment variable LD_LIBRARY_PATH....
10,908
Posted By jp2542a
1. Force redirection even if noclobber is set ...
1. Force redirection even if noclobber is set
2. Equivalent to set/export sequence
8,158
Posted By jp2542a
The NR-1 solution only works if there is one...
The NR-1 solution only works if there is one space between words. :D Mine counts all spaces...
8,158
Posted By jp2542a
echo $answer | awk -F "" '{for (i = 1; i <= NF;...
echo $answer | awk -F "" '{for (i = 1; i <= NF; i++) if ($i == " ") c++ } END { print c}'
13,813
Posted By jp2542a
I am curious. What are you trying to achieve and...
I am curious. What are you trying to achieve and why? Does your makefile force unneeded static libs to be included in the executable?
8,158
Posted By jp2542a
Your question looks like a "answer my homework...
Your question looks like a "answer my homework problem" type. Which will most likely go unanswered or get a nasty reply. May I suggest you rephrase the question along the lines of "Here is my...
3,439
Posted By jp2542a
You made my brain hurt, Scrutinizer :). What...
You made my brain hurt, Scrutinizer :). What happens if the record has a 5? :) (The rule said >=5 :D) ... Nice code
3,439
Posted By jp2542a
contents of avg.awk BEGIN { FS=","...
contents of avg.awk

BEGIN {
FS=","
}

{
s = 0
j = 0
for (i=4; i <= NF; i +=2)
if ($i >=5)
{
s += $i
j++
...
Forum: What is on Your Mind? 12-12-2009
5,420
Posted By jp2542a
Somebody kill this thread before I really go off...
Somebody kill this thread before I really go off (joking... about going off.. :) )
Forum: Programming 12-12-2009
13,909
Posted By jp2542a
Try moving the init of COUNT to above the strcat....
Try moving the init of COUNT to above the strcat. The compiler may be confused....
Forum: What is on Your Mind? 12-12-2009
5,420
Posted By jp2542a
The fact is that there will always be someone who...
The fact is that there will always be someone who feels the need to make all they see conform to their subjective and restrictive view of the actual relationships of arbitrary systems. Suggesting...
Forum: What is on Your Mind? 12-12-2009
5,420
Posted By jp2542a
Geeze.. had a flashback to the day AOL dumped...
Geeze.. had a flashback to the day AOL dumped "normals" on the net...

I think a more appropriate command would be

divine_intervention -9

After all, any sender expecting results from this...
Forum: Programming 12-12-2009
6,691
Posted By jp2542a
Is there any reason that you need to have a c...
Is there any reason that you need to have a c program? Maybe you can adapt this.. https://www.unix.com/shell-programming-scripting/119364-until-loop-fails.html#post302353830
3,165
Posted By jp2542a
I don't have enough information on what the file...
I don't have enough information on what the file looks like and what needs to be done. Can you make a better example of what the real file looks like and how it needs to be processed?
Forum: Solaris 10-24-2009
3,186
Posted By jp2542a
Hostname is only a minor bit of info a DHCP...
Hostname is only a minor bit of info a DHCP server can provide. More importantly, it can provide your IP, nameservers, domain name, and default router info... My node's all know their names. And...
3,001
Posted By jp2542a
Did you set up the crontab with the variables...
Did you set up the crontab with the variables MAILTO, HOME, and SHELL? Where there any mail messages?

Cron is executing the scripts. But there may be a problem related to the expectations of...
3,001
Posted By jp2542a
What we need to see is what happened around the...
What we need to see is what happened around the time that the jobs should have executed and didn't. I suggests that you set up a crontab. When it fails, post the part of the log that covers 1 hour...
2,230
Posted By jp2542a
The script will only move files that are not...
The script will only move files that are not links already. The tar pipe is a convenient way to move the files without having to create logic to make paths and directories that may not exits. What...
2,230
Posted By jp2542a
Try this... mount1="/dir/mount1" ...
Try this...


mount1="/dir/mount1"
mount2="/dir/mount2"

cd $mount1

f_list=`find application -type f`

tar cf - $f_list | (cd $mount2; tar xf -)

for i in $f_list ; do
rm $i
ln -s...
4,251
Posted By jp2542a
Are you sure that ksh is in /usr/bin and not /bin?
Are you sure that ksh is in /usr/bin and not /bin?
1,594
Posted By jp2542a
If I understand you correctly, all you have to do...
If I understand you correctly, all you have to do is export the variables in the main script.
The variable will be defined in all shell scripts you call from the main script.

For example, to make...
2,828
Posted By jp2542a
I changed your script to: #!/usr/bin/perl...
I changed your script to:


#!/usr/bin/perl
my @array;
my $sepa = '\|';
print $sepa;
open FH, "<100_20091023_2.txt";
while(<FH>){

push @array, split($sepa, $_);
print "@array\n\n";

}
...
Forum: Solaris 10-24-2009
3,186
Posted By jp2542a
Uh.. that should be cp /etc/nsswitch.dns...
Uh.. that should be

cp /etc/nsswitch.dns /etc/nsswitch.conf

Or you might consider DHCP if your network is capable..
9,110
Posted By jp2542a
While I can't understand why someone would want...
While I can't understand why someone would want to run a program that generates a SIGBUS, you might try running it with strace or truss (depending on what system you are using. You will get more of...
3,001
Posted By jp2542a
You shouldn't have to restart crond. It...
You shouldn't have to restart crond. It automatically checks every minute to see if anything has been modified. If yes, then it reloads everything.

And make sure you are using crontab -e to...
Showing results 1 to 25 of 155

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