Search Results

Search: Posts Made By: c_d
9,569
Posted By c_d
<delete this>
<delete this>
9,569
Posted By c_d
i m sorry but i could not understand what you...
i m sorry but i could not understand what you were trying to say...

i have already solved my problem with the help of sed(i m using bash ofcourse)

find . -type f | while read i;do mv "$i"...
Forum: Programming 05-10-2009
24,202
Posted By c_d
try javac -classpath /path/to/weka.jar a.java ...
try javac -classpath /path/to/weka.jar a.java

btw you could add the classpath to your .profile in your $HOME...add the line that vino said into your .profile file and logout and log back in
Forum: Programming 05-10-2009
6,930
Posted By c_d
first understand what fork returns to parent and...
first understand what fork returns to parent and child, then everything will automatically come to you...fork (http://www.opengroup.org/onlinepubs/000095399/functions/fork.html)
9,569
Posted By c_d
renaming files in the directory
suppose i have a few file like "a b c.txt" , "hello world.c" etc...(files that have space between them in their filenames).

how do i change their filenames to "a_b_c.txt" and "hello_world.c"...
2,521
Posted By c_d
what if parameter is 4 or 6 or 7 or 8 or 9 or 10...
what if parameter is 4 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 how are the files going to be distibuted then?

it still pretty unclear to me...but hopefully you understand this.

for i...
2,838
Posted By c_d
nevermind, i found this... STREAMS...
nevermind, i found this...

STREAMS Programming Guide (http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWdev/STREAMS/p4.html#OVERVW1-38936)
19,743
Posted By c_d
i have a question, which probably no one can...
i have a question, which probably no one can accurately answer. but still i'd love to hear your expectations.

i only took up UNIX only this semester.So, its hardly 4months since I first saw the...
3,634
Posted By c_d
chmod +x <scriptname> then sh...
chmod +x <scriptname>

then

sh <scriptname> or ./<scriptname> to run the script
2,838
Posted By c_d
ioctl whats a "STREAMS device"?
well, as the man page clearly states...



so its important to understand the difference between STREAMS and non-STREAMS device
19,743
Posted By c_d
it seems to me like...life of a unix sysadmin is...
it seems to me like...life of a unix sysadmin is "have to work whenever you are needed" ,which wouldn't really be much if you are very apt and efficient, and the rest of the time is off!!...

life...
19,743
Posted By c_d
thanks for asking this question hpicracing...this...
thanks for asking this question hpicracing...this entire thread is very informative...the member-sysadmins who have answered are very nice to share their experiences and give their advice
i would...
14,115
Posted By c_d
hi i was think of this again and i thought...
hi

i was think of this again and i thought of this one


[c_d@localhost pipesnfilters]$ cat f1 f2 | sort -u 1>f1
[c_d@localhost pipesnfilters]$ cat f1

the quick brown fox jumped over the...
Forum: Programming 04-02-2009
2,114
Posted By c_d
learn about fseek() function or lseek() system...
learn about fseek() function or lseek() system call
Forum: Programming 04-01-2009
7,818
Posted By c_d
[c_d@localhost cfiles]$ cat temp.c ...
[c_d@localhost cfiles]$ cat temp.c
#include<unistd.h>
#include<fcntl.h>

int main()
{

if((write(STDIN_FILENO,"arrgh!",6))==-1)
{
perror("error writing to file");
} ...
Forum: Programming 04-01-2009
7,818
Posted By c_d
yes, so the content of file.txt will be written...
yes, so the content of file.txt will be written to stdin of a.out

to demonstrate...


#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>


int main(void) ...
Forum: Programming 03-31-2009
4,777
Posted By c_d
who is "he"? if you described it to me, that...
who is "he"?
if you described it to me, that means you too are thinking in that way...for describing it to me...:rolleyes::p
dont push yourself too hard...

no its not the language really, its...
Forum: Programming 03-31-2009
4,777
Posted By c_d
seeing jim mcnamara's code gave me an idea ...
seeing jim mcnamara's code gave me an idea


#include<stdio.h>
#define SP 32
#define BRK_LOP 16

int main()
{
char ch;
int flag=0;
puts("Press ctrl+p to stop");
...
Forum: Programming 03-31-2009
4,777
Posted By c_d
hows this? #include<stdio.h> #define SP 32 ...
hows this?
#include<stdio.h>
#define SP 32
#define BRK_LOP 16

int main()
{
char ch;
int flag=0;
puts("Press ctrl+p to stop");
while((ch=fgetc(stdin))!=BRK_LOP)
{
...
Forum: Programming 03-31-2009
7,818
Posted By c_d
you cannot execute a file using \ ...it should...
you cannot execute a file using \ ...it should be./a.out
and
< means you are redirecting the content of file.txt to stdin of a.out

to write "arghh!" to file.txt one would generally do ./a.out...
2,744
Posted By c_d
double post
double post
2,744
Posted By c_d
let it take as 2 parameters... in the shell...
let it take as 2 parameters...

in the shell script

do this..

str= `echo "$1 $2"`
Forum: Programming 03-31-2009
7,818
Posted By c_d
#include <stdio.h> int main(void) { if...
#include <stdio.h>

int main(void) {
if ( fprintf(stdin, "A") < 1 )
perror("fprintf");
return 0;
}

OP:

[c_d@localhost C scratchpad]$ gcc temp.c
[c_d@localhost C...
Forum: Programming 03-29-2009
7,818
Posted By c_d
i tried the exercise you suggested on ...
i tried the exercise you suggested on
#include<unistd.h>
#include<fcntl.h>

int main()
{

close(STDOUT_FILENO);
close(STDERR_FILENO);
if((write(STDIN_FILENO,"arrgh!",6))==-1)
...
Forum: Programming 03-29-2009
9,683
Posted By c_d
thanks a lot
thanks a lot...:)
Showing results 1 to 25 of 45

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