409 Topics

Member Avatar for
Member Avatar for hajjo

I am doing fork(), I need to send messages between parent & child.. am using this.. char readbuffer[80]; int fd[2], nbytes; if(child == 0) { close(fd[0]); nbytes = read(fd[0], readbuffer, sizeof(readbuffer); index = atoi(readbuffer); } else{ close(fd[1]); sprintf(sending, "%i", index); write(fd[1], sending, strlen(sending)+1); } Index is an integer am sending …

Member Avatar for bionicseraph
0
195
Member Avatar for serkan sendur

i need to train my self on unix os but i dont have it available on any pc at home. i have a laptop installed windows vista on it. how can i install unix os on it?

Member Avatar for jbennet
0
294
Member Avatar for gumber

hello friends , i am a computer engineering 3rd year student . I have a winter break of about 1 month . I want to do a project during that period . Can you please suggest me some project idea related to unix and networking . It will be great …

Member Avatar for dickersonka
0
44
Member Avatar for jkun2

For my second project in C we have to write a program to take in 2 arguments, one being a directory path and another being an int level_val. If level_val is -1, files in the parent directory are to be listed, and so on up the directory tree for -2, …

Member Avatar for Ancient Dragon
0
193
Member Avatar for babusek

Hi Folks:) , Problem: how to run unix "find" Command in Java Program using Cygwin Environment. I have been using the Runtime & Process classes to run the unix commands in java program,i can able to run the grep ,cat command etc.. But i Couldn't able to run the "find" …

Member Avatar for babusek
0
846
Member Avatar for babusek

[COLOR="Green"][/COLOR][B][/B][B]HI Folks[/B] This is Question seems like scrap but look into this .. I have several files in a directory(Ex:c:\dir\) now i have to remove the First 3 Characters from the File names in that directory. Using any unix command .. Test Case 1: C:\dir\ 123file.txt 456newfile.mp3 57575unixfile.dat trarruniing.txt After …

Member Avatar for eggi
0
163
Member Avatar for AcidG3rm5

Hi guys. I'm doing a programming, whereby I have to display a prompt of my own on the linux terminal. Example commandprompt>. The program will then wait for user's input, example "ls -ali | more" or "ls -ali" and etc. I will be using the following system call in my …

0
84
Member Avatar for ahamed101

Hi Everyone, I know conio.h is not available in Unix. I want to use getch(). Using curses.h needs causes the screen to clear which I don't want. I found a code snippet (source : internet) using termios, it works, the thing is I need to press enter/or any other key …

Member Avatar for ahamed101
0
1K
Member Avatar for ahamed101

Hi All, Is there any way to invoke an Window Application (for eg say calc.exe) from a Unix Server. I think we might be needing a Windows X Server running. I am not sure how to invoke an application from the unix server. Any help on this. Regards, Ahamed.

Member Avatar for BillBrown
0
200
Member Avatar for jees

Hi, I am a webdesigner and don know much about php coz, my main stream is html and css. I used to use asp feedback forms for my websites. But my new website server is unix based. I think asp feedback forms are not supported in unix. Please tell me …

Member Avatar for R0bb0b
0
88
Member Avatar for MylesDBaker

Hello everyone. I am trying to create a program that reads these values / strings from a file: 170 Lipstick 250 Orange Crush 350 Chickadee 450 Green Grass 550 Monaco 750 Toffee Crunch Then I am supposed to create a menu that prompts the user to provide either the number …

Member Avatar for MylesDBaker
0
149
Member Avatar for Luckychap

Hi all, I am very new to Unix. Please help me to write a script. Here is the discription of what the script should do: The script won't need to be horribly complex; it's to check to see if the hawkagents(a process) on a server have been restarted since the …

Member Avatar for Luckychap
0
150
Member Avatar for cyberfrog

Hey guys, Hope u can help. Basically have jus downloaded vmware v6.0 and installed solaris 10 on there as guest o/s. Now, usually when I have ftp'd in past I have used command prompt in windows to open the IP on the unix so I can transfer files. However, no …

Member Avatar for vmanes
0
87
Member Avatar for madankumar

HI I would like to pass new argument to cureently running process with out interuption in unix using c code can any one Idea on this Please suggest Thanks in Advance Madan

Member Avatar for madankumar
0
77
Member Avatar for k2k

hi everyone, does any know any good/ accredited university which offer online unix course this summer? I have been googling around with no good result. If anyone had taken or going to take or taking any online unix administration course, please please let some info here. I really need this …

Member Avatar for popslk45
0
139
Member Avatar for k2k

hi, i had a few unix questions that I am not sure about the answers. if anybody can give a try... that would be great. 1. In sed, when you do pattern matching, the largest pattern is always matched first, left to right. True or False 2. The command tr …

Member Avatar for masijade
1
520
Member Avatar for meabed

Here is a quick and dirty tutorial for UNIX sockets. By no means it is complete but after reading it, man pages start making sense. Oops two seconds already wasted lets dive into the topic thanks to Delip Rao......:D:D

Member Avatar for ckb4u
0
74
Member Avatar for Dark_Knight

A lot of people say that Unix BC is a very good calculator program. However whenever I enter the following commands (after loading the math library -- i.e invoking BC at the command line by typing 'bc -l') I get: e (3 * l(2) ) 7.99999999999999999982 e(0.2*l(32)) 1.99999999999999999998 The first …

Member Avatar for Dark_Knight
0
120
Member Avatar for nagguns

HI I am facing some (lot of, actually) problems porting a legacy program from UNIX to WINDOWS... I see a lot of errors like this error LNK2001: unresolved external symbol Can some one help how to get rid of these errors.. Thanks in advance

Member Avatar for jephthah
0
241
Member Avatar for k2k

hi, I am trying to take unix administration and shell scripting courses this summer. I have done 2 courses of C++ and a course of java. However i have never learned C. Anyone please give me some opinion if learning C is necessary for Unix. Since C++ is inherited from …

Member Avatar for Major Major
0
83
Member Avatar for SaZ1981

Our application was ported from UNIX to Linux(x86) and we are using Red Hat Linux. I have hit a problem with Rogue Wave libraries and would appreciate any help. RWTPtrSlistIterator is being used to iterate a list which has RWTPtrSlist in them. The code flow goes something like CaUpdateSetIterator updateIter(( …

0
58
Member Avatar for cyberman111

Hi I am trying to write a script that converts centigrade to fahrenheit and vice versa I need to use a sub-function to perform the calculations. Can anyone help me get started on this I am kinda lost and will like help learning this thank you

Member Avatar for Impact4ever
0
818
Member Avatar for baku

I have two program problems: a program that generates this file writing zeros for PID and TIME and random numbers in the 8 pozitions of the DATA field. and program that will create at least 3 child processes, each of which will repeat at least 10 times the following operations …

Member Avatar for baku
0
88
Member Avatar for baku

I need some ideas: The called program gets as parameters two or more integers and and returns 0 if all pairs of two are relatively primes, and 1otherwise. The callee shall read a sequence of numbers and tell whether they two by tworelatively primes.

Member Avatar for baku
0
62
Member Avatar for cyberman111

HELLO i HAVE A SCRIPT THAT TAKES INFORMATION FROM 2 FILES AND PUT IT IN ONE, NOW I NEED TO PUT ALL THE INFORMATION(OUTPUT) INTO A NEW FILE , THIS IS HAS TO BE DONE IN THE ORIGINAL SCRIPT NOT COMMAND LINE, CAN ANYONE TELL ME HOW TO DO THIS …

Member Avatar for ithelp
0
115
Member Avatar for cyberman111

HEY, I am new at this but I am in a middle of an excercise for an online class I am taking and I am doing a exercise and I am stuck. the instruction are as follow : write a shell script that will take information from 2 fles and …

Member Avatar for Impact4ever
0
149
Member Avatar for lynx_aba

hi fellows... I have a little problem, in Unix there's a library called unistd.h that have the function "link" and as its name says, creates a link of a file.... I want to use that function in windows, but i only found the "_unlink" function in the io.h library, this …

Member Avatar for dougy83
0
113
Member Avatar for tomok

Hi guys, Couldn't find a suitable forum for this question, please move this thread if needed. What I need to do redirect the output of TOP to a text file. Doing a simple %> top > top.txt yields the following %> less top.txt load averages: 0.88, 0.89, 0.87 11:50:49 100 …

Member Avatar for masijade
0
86
Member Avatar for skelly16

Hi All Im having issues with my mail command sending data from my script. I have a korn shell script which logs onto a database and does a few select statements. The problem is i think the EOF stops my mail command sending the data. Im able to run the …

Member Avatar for eggi
0
774
Member Avatar for cnet1989

I want to write a shell script that finds files in a directory that are (owner permissions) readable, writeable, or executable for the owner. But I don't know the command to list files with certain permissions (rwx)... I'm sure it has something to do with ls, but I just can't …

Member Avatar for dilkash2007
0
60

The End.