Search Results

Search: Posts Made By: bishweshwar
35,952
Posted By bishweshwar
I guess it will run from 1-7 & 15-21, and every...
I guess it will run from 1-7 & 15-21, and every wednesday. so how does it go bi-weekly.
1,577
Posted By bishweshwar
anyways plz take care in posting duplicate...
anyways plz take care in posting duplicate threads.

Still then one suggestion. Why are you taking old data to a seperate file. Try to create new files based on date and append the data to that...
Forum: Programming 01-26-2008
14,140
Posted By bishweshwar
reading the return value from S_ISDR
how to read the return value of S_ISDIR macro.

It works fine when used in if loop, but how to print the returned value.

Thanks
bishweshwar
Forum: Programming 01-21-2008
2,167
Posted By bishweshwar
Sorry for bothering anyone if read it. Got the...
Sorry for bothering anyone if read it.
Got the answer.

read() function reads an entire line from input, i was thinking it of as a character.

Thanks
bishweshwar
Forum: Programming 01-21-2008
2,167
Posted By bishweshwar
ambiguity in program output
1 #include <fcntl.h>
2
3 main(int argc, char *argv[])
4 {
5 char buf[1];
6 int fd, count = 0;
7
8 if (argc > 1)
9 fd = open(argv[1], O_RDONLY);
10 else
11 fd = 0; /*...
3,527
Posted By bishweshwar
matching words using regular expressions
following file is taken as input

aaa bbb ccc
ddd eee ffff

grep -w aaa <filename> gives proper output.

grep \<\(aaa\).*\> filename :- should give output, since aaa is at begining, however i...
4,978
Posted By bishweshwar
getting error with expr
sum=0;
cat op_api2 |while read word1 word2;
do
echo $word2
sum=`expr $word2 + $sum`;
done
echo $sum


op_api2 ( file has this data )
----------------------------
UsageSummary 1034...
4,183
Posted By bishweshwar
Relation between kernel & weblogic thread
"nkthread" kernel parameter limits the number of threads running at any point of time from all processes.

Does the thread setting in "weblogic server" is in anyway related to this.

Please...
1,968
Posted By bishweshwar
Can you explain how this part works....... ...
Can you explain how this part works.......
([^<spc><tab>][^<spc><tab>]*\) & ".*$/\1" .

Thanks
Bishweshwar
2,971
Posted By bishweshwar
Error while executing glance using ssh
Hi,

I'm running glance ussing ssh from a "HP-UX" machine for a Sun machine.

Here is a sample code:-
x:- HP-UX
y:- Sun
Extracting a value from glance outuput.

ssh x@y...
Forum: Programming 08-19-2007
8,628
Posted By bishweshwar
doubt in understanding the signal handler
Establishing the signal handler
----------------------------------
signal (SIGALRM, catch_alarm);

Calling the signal handler
-------------------------
catch_alarm (int sig)
{
keep_going =...
6,004
Posted By bishweshwar
same file dosen't get updated.
when i tried the following one:-

sed '/abcdef/a \bbbbb' your_file > your_file. the contents of your_file got deleted. why it was so.
7,582
Posted By bishweshwar
blocking the characters
[QUOTE=matrixmadhan;302132635][QUOTE=bishweshwar;302132634]


the first 2 characters are specified as ^..
the third character is mentioned as \(.\)
and the remaining characters starting from 4th...
7,582
Posted By bishweshwar
confused with this pattern
[QUOTE=vino;302132533]echo "string" | sed -n -e "s/^..\(.\).*/\1/p"

Sometimes get confused with regular pattern.

after getting the 3 character from the beginning [ ........\(.\)........]
...
2,041
Posted By bishweshwar
Running unix scripts by clicking windown icons
any idea.....

If i want to run the scripts in unix...can it be done ..just by clicking icons on a windows machine ( connectivity exists between the windows & unix machine )
Forum: Programming 08-12-2007
8,916
Posted By bishweshwar
create sound using C program
I could not recall the function in C to generate diff type of sounds.

Can somebody help me out.
Forum: Programming 08-08-2007
29,290
Posted By bishweshwar
one query..in the above code
Why the resule is being divided by 30 to get the result & added to 10.

How to reach the above decision.
140,794
Posted By bishweshwar
confused..!!
/\(.*\)\..*/

Can you explain..how..this removes the extension....what the double dots play here.
2,007
Posted By bishweshwar
getting the line number by extracting a line
grep "KeyNotFoundException" weblogic.log

After running this command the output is

abcxyzexceptions.KeyNotFoundException: Person not found

How to know ..what is the line number of the above...
2,364
Posted By bishweshwar
Remotely executing awk command
ssh user@machine awk '{ split ($1,ar,"!");print ar[2]}' samp >samp1

Error:
Unmatched '.

However on <machine> awk '{ split ($1,ar,"!");print ar[2]}' samp >samp1
executes successfully.

Any...
Forum: Programming 07-11-2007
1,817
Posted By bishweshwar
erroneous output
#include<stdio.h>
int main ()
{
FILE* f_read;
FILE* f_write;
char *string[80];
f_read=fopen("file1","r");

while(!feof(f_read));
{
...
27,763
Posted By bishweshwar
command for SunOs machines
What would be the same command for Sun Os machines.
7,143
Posted By bishweshwar
using variables in sed
a=2
sed -n "/${a}/p" list | cut -d "#" -f1

this dosen't print only second line.....

how can it b done....
11,289
Posted By bishweshwar
using enter key in shell script
without pressing the enter key ..manually...

how can we read the enter key ..from the shell script..so that the script termintes automatically.

eg:

telnet a.b.c.d xxxx
now " how to read...
6,943
Posted By bishweshwar
xml parsing error in perl
******************PERL VERSION************************
This is perl, v5.8.1 built for i386-linux-thread-multi

ERROR!!!!---Undefined subroutine &main::start called at...
Showing results 1 to 25 of 56

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