Search Results

Search: Posts Made By: bobbyjohnz
4,204
Posted By bobbyjohnz
Problem creating files greater than 2GB
With the C code I am able to create files greater than 2GB if I use the 64 bit compile option -D_FILE_OFFSET_BITS=64. There I am using the function fprintf to write into the file. But when I use C++...
10,970
Posted By bobbyjohnz
Hey I tried ctrl-z but its not responding to...
Hey

I tried ctrl-z but its not responding to it. Normaly the process stops and gives new prompt, right? There on the new prompt only we have to run bg. Am I correct? Also I could not find anything...
10,970
Posted By bobbyjohnz
Help on nohup
Hi

I submitted a long running executable without using nohup. Now, is there any way I can assure to keep that process ON even if my session gets killed?

Thanks
Bobby
2,674
Posted By bobbyjohnz
Hi Naynajith I am not sure is this one...
Hi Naynajith

I am not sure is this one exctly you want. Any way hope that at least it will help you derive what you are looking for.

Here is the script I tried and as per my understanding of...
11,737
Posted By bobbyjohnz
Rajendra Do you mean that the contents of...
Rajendra

Do you mean that the contents of the original attached file varies from that you got in the mail? If your answer is yes, I am surprised. What I have used for this purpose is the one given...
5,436
Posted By bobbyjohnz
Hi Aparna You have multiple types of files...
Hi Aparna

You have multiple types of files and unknown count of each :cool: . I don't have a single liner as you asked for. But a slighter smaller version than you have in hand. Please try this...
Forum: Filesystems, Disks and Memory 06-14-2006
2,168
Posted By bobbyjohnz
Explanation for how it was working so far!!!
Hi all

Recently we got an error unearthed which was existing long since in our production code. Let me explain the problem..It was something like this...
char source[20] = "1234567890123456789";...
2,572
Posted By bobbyjohnz
Gaurav I just used your logic, which I felt...
Gaurav

I just used your logic, which I felt excellent, but in addition sorted the file names which will avoid the problem Madhan pointed out :)

About the sort..

-n - For numeric sort
-r...
2,572
Posted By bobbyjohnz
Of course it should be rm -f $file2del
Of course it should be rm -f $file2del
2,572
Posted By bobbyjohnz
How about this? ls -1 abc_* | sort -n -r -k...
How about this?

ls -1 abc_* | sort -n -r -k 1.5 | read file2del
rm -f file2del
Forum: AIX 01-23-2006
8,016
Posted By bobbyjohnz
Hi Try the following command cal 01...
Hi

Try the following command

cal 01 2006 | tr -s " " | sed -e '1,2d' | awk -F" " '{print $1}'



use the following in awk
$1 - For Sundays
$2 - For Mondays
$3 - For Tuesdays
and so on
...
Forum: Programming 01-23-2006
13,955
Posted By bobbyjohnz
Its not so clear what you exactly wanted to do....
Its not so clear what you exactly wanted to do. Please check the man pages for library function difftime, perhaps it would be of your use.

Reagrds
Bobby
Forum: Programming 01-23-2006
13,955
Posted By bobbyjohnz
Try the following logic, I hope it will be of...
Try the following logic, I hope it will be of help.


#!bin/ksh
first_date=20051010001224
second_date=20040101123445
diffrnce=`echo "$first_date - $second_date" | bc`
if [ $diffrnce -eq 0 ]...
3,090
Posted By bobbyjohnz
That's exactly the script I gave does. Try...
That's exactly the script I gave does. Try running the script and Just press eneter when it prompts for the passwd. It will display the message!!
3,090
Posted By bobbyjohnz
I couldn't figure out what you need exactly ...
I couldn't figure out what you need exactly :confused:
3,090
Posted By bobbyjohnz
Try this... #!/bin/ksh echo "Enter...
Try this...


#!/bin/ksh
echo "Enter passwd : \c"
read passwd
if test ! -n "$passwd"
then
echo "Please enter something"
fi
2,667
Posted By bobbyjohnz
Try this... grep "^To:" inputfile > f1; grep...
Try this...

grep "^To:" inputfile > f1; grep "^Subject:" inputfile > f2;paste f1 f2 > yourfile;rm f1 f2


and check the file yourfile
2,667
Posted By bobbyjohnz
Scott If you could give a sample of your input...
Scott
If you could give a sample of your input file (ie, the rejected mail file) it would be much helpful to those who want a try on this issue.
3,298
Posted By bobbyjohnz
#/bin/ksh number1=9888673663678977 ...
#/bin/ksh
number1=9888673663678977
number2=79872372378273472379837
result=`bc << EOF
$number1 + $number2
EOF`
echo "$number1 + $number2 = $result"



Try this script.
Showing results 1 to 19 of 19

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