409 Topics
![]() | |
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 … | |
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? | |
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 … | |
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, … | |
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" … | |
[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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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 | |
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 … | |
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(( … | |
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 | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
Please forgive me, I know *VERY* little about C... I can hack out enough to do what I need to do for the most part but I'm absolutely lost on a project I need to finish. I am writing a wrapper for common RHEL commands so that our helpdesk technicians … | |
hello there I am new into scripting . What is the use of unix shell scripting with oracle and how can I combine oracle with unix shell scripting? Any replies regarding this would be great. Thanks in advance, Techbrain55 | |
hi, i'm newbie in python. i want to connect to MS SQL SERVER 7 on windows server, from Linux Slackware using python. I have install unixODBC 2.2.12 and FreeTds 0.64.. everything works fine include the tsql. but i don't know how to configure the odbc in odbc.ini and freetds.ini... need … | |
hi guys, can u help me out with how to develope a shell in linux | |
Hi, I am in need of writing a shell script to read, database table and email the results to a list of users. Please let me know if I could provide further info. Please assist. Thanks, -Abhey | |
I have to write a script called trying. The script takes a full path (like /users4/st/jdoe/prog.c) as an argument and displays the path and the file name. For /users4/st/jdoe/prog.c, the path is /users4/st/jdoe and the file name is prog.c. I know that I can use grep for it, but it's … | |
hi, i am runnning a php script where i try to decompress a file and the untar it. the file in suppose x.tar.gz. so in my php script i call system command system("gunzip /home/trial/x.tar.gz"); now to untar i use system("tar xvf /home/trial/x.tar"); now the error creeps in. i am able … | |
Why we get the core file and also how can we debug it in unix(using sun C++ compiler) | |
Every time I reboot my laptop it gets new static ip address, I login to unix servers using ssh, every time I have to manually export DISPLAY to actual ip address, is there any way I can automatically get the ip address of machine from where I am logining in? | |
I have a simple function that I wish to perform in a .NET program. I am currently working in C# with .NET version 1.1, but any .NET language help would be useful. I want to be able to send a remote command to a UNIX or VxWorks computer form a … | |
HI I would likt to create input files for testing, format is like this INPUT Format DISP NUM BYTES Desc 0 4 CODE 4 10 EMP NO 14 3 AGE 17 1 SEX which will be used for creating flat files ( data in excel file). OUTPUT file should be … | |
I am writing client and server programs for a simple FTP. I am allowed to use chdir, getcwd and getenv. What would be a correct procedure to expand a user provided path correctly using these functions, assuming of course the user supplied path is stored in a c-string? Thank you. | |
I am writing a server function and an error message is defined as: [code] #define UNKNOWN "Unknown" [/code] I have a function: [code] void search(int sockfd) { FILE *file; char arg1[MAXLINE], arg2[MAXLINE], title[MAXLINE], line[MAXLINE]; file = Fopen (PATH, "r"); while (true) { if (Readline(sockfd, title, MAXLINE) == 0) return; Fgets … ![]() | |
I am very very new to all of this stuff. I have been given a username and password, and I try to run this command: mysql -p -u username < filename But everytime it prompts me for a password, and does not let me type anything in. Please let me … | |
Hi All, I am working on a situation suppose i am calling one exe(C++ code) from unix shell script now i want that 2 values in that unix script which this c++ code will get from some URL. Any Idea how can i get those 2 values from C++ code … | |
hi everyone, I would like to thanks for replying me in my first thread, and now i am confused about unix, i mean what is the defference between the linux and solaris, how do they are related with unix, and which one is better. where can i find free downloads … | |
hi there, i have some knowledge about Unix and now i wanted to choose Unix admin to start my career. i wanted to know all the basic info about unix. like what are the version's and types of operating system, which one will be best for me. because presently i … | |
Hi There, New to Linux/Unix, wanted to adopt UNI/Linux System Admin as profession. Have been DBA/System Admin for some time. where can I take a UNIX System Admin course/training to get on the road fast? Thanks for any advice. Data Sheet (The Linux/UNIX learner) | |
Hi there, I have heard so much about Unix but still know so little. 'Its an operating system that puts me in control' is about as far as i got. What are the potentials? What would i need to do to my windows Xp laptop to run Unix? What kind … | |
In my current Unix/C++ application, I need to pipe a file through the sort(1) program before reading it. The input is large to huge, so in-memory sorting won't work. I'm used to using fork(2), pipe(2) and exec(3) in my C programs. I know I can do the same in C++, … |
The End.