1,446 Topics
![]() | |
i'm writing a C program in unix that take a number upto 5 and creates that amount of threads..if the use doesn't enter anything the program quits after 5 secs...and this is where i'm stuck T_T ..how do i do this ? time.h ? code of wat i've done so … | |
I need to write a program that calculates the squares of all numbers that are contained in a file of floating point numbers. The obtained new numbers form a new file. Like this : if the file contains the numbers 1, 2.5, 0.1, the numbers 1, 6.25 and 0.01 form … | |
Hello everyone I am new to this site. I have a university assignment in which I need to program a 2 player pacman game, using C and the Unix operating system. If more than 2 users have typed the command to run the program/s the users must wait in FIFO … | |
Hi all I have a program that is written in java and have three different executables program.sh, program.bat, program.jar. i can starts the gui by using program.jar and then in gui i can enter parameters. but as i want to run it over several parameters and get the outputs. i … | |
I am using the following string and Java code to create a user on a Linux box via Java. [CODE=java] ... String x = "/usr/sbin/useradd -g users -s /bin/bash -c 'FIRST M LAST, STERK,DIV-DIS-OFF,123-456-2913' -p 2342asdfa231rcawef09 -d /home/flast -m flast"; RunCommand(x); ... [/CODE] However, upon execution it spins a list … | |
need help with a homework problem and i've been starring at code all day and my brain is fried... any advice or pointers would be greatly appreciated Description of the Problem Write a method minimum3 that returns the smallest of three floating-point numbers. Use the Math.min method to implement minimum3. … | |
*ptr = 'hello world"; if we try to modify the content the result is undefined when i worked with gcc in unix. But i can modify the content in Turbo c. How it worked i got confussed. | |
I'm mostly a former developer, doing small pieces of code in a variety of languages and applications in order to help out my team. I joined DaniWeb to learn new things, be reminded of old things, get help and help out others. I do mostly systems engineering now, processes, quality, … | |
Hi all, I am new in shell scripting and I need your help 1. I would like to make a list of files (no folders) of unix system which do not belong to root 2. I would like to make a list with directories of system which the first letter … | |
This is an assignment question, I know i should do it myself, but believe me i have just learned this subject and couldn't find the answer. Please if someone could give me the answer, i would be greatfull. And please if you could hurry because I have to submit on … | |
how to populate select box depending upon the selection of the radio button on rails anyone knows what will be the possible ajax and rails script for populating dropdown list values based on selected radio button on rails 3 example there are two type of platform choices(windows, unix) of radio … | |
In a unix pthreads based app I'm working on, I have objects of a particular class (call it class foo) being created in multiple threads. I need a specific public method of class foo invoked at or after 60 seconds of the object coming into existence (it is not imperative … | |
I have worked with Java, C, and C++ primarily on unix systems. I would like to get into Windows application development, and have two questions. (In your opinion) - What is the best IDE supported lanauage in the Windows environment that is capable of sending system events to change system … | |
If I have an event which consist of 100 tasks, how to rewrite the below code,so i can show all the dealine of each task into <table>? Thanks! [CODE] <?php require("connect.php"); $deadline = mysql_query("SELECT * FROM events WHERE taskid='1001'"); $row= mysql_fetch_assoc($deadline); $deadline2 = ($row['deadline']); //dealine for this task(1001) is 2011-3-10-5-45// … ![]() | |
Hi, I wanna traverse inside the file system by using threads and processes.My program has to assume the first parameter is either given as "-p" which offers a multi-process application or "-t" which runs in a multi-threaded way. The second parameter is the pathname of a file or directory. If … | |
[quote] •… Linux is basically a DOS based OS. •These days we are using 128 and 256 bit processors. •A compiler is a software that converts code written in a particular programming language to machine code. To compile a program, you must hit ALT+F9. (It took me a while to … | |
![]() | Hi guys, I'm trying to do a client server socket program, where the client writes a list of numbers for the server to compute, and then finally server returns a result. I've managed to get my functions working the way I want (not in client/server) But I've problem implementing it … |
Apache is running in UNIX box, and we have configured folder path in config file and we are accessing python code from that folder. In the python code, we have two methods new_page() and access_form_elements(), new_page() -- print new HTML page with two form elements and method=POST and action=same .py … | |
Hey all! So i've been working on a unix chat server and I think I've done a good job having no idea what I'm doing :-p. The only issue I'm running into is that I can't get it to go 1 to multiple. For instance, the idea is that any … | |
Hello, I have a script written the unix shell language (NOT in bash or any other shell, in sh) that prints the mount point of a given usb (i.e, it takes the path of a usb (such as /dev/sdb1) as an argument). Here it is: [CODE] #!/bin/sh # usage: get_mount … | |
I can upload one file and would like to allow for 4 - 6 file uploads. I did not write the upload code and all I need is to add more uploads and I am not sure how to alter the code. # maximum file size allowed (kilo bytes) $max … | |
Hello, I need assistance with a pearl/expect script to change user password on mulitple UNIX/Linux servers. I have one dated 11/16/2006 but it is not working exactly as expected. Was hoping there was an updated version that might assist me? It works as such: passchange.script -cmd "passwd user" -inputfile file_with_listofhosts … | |
Hey guys , i am having a problem with string arrays. Basically ,i declared my array in the header file. Here is my prog. [CODE]Main.cpp using namespace std; int main(){ string Test = "fat"; e te; te.b(Test); } Test.h class e { public: void b(string) string a [ ]; int … | |
Hello all, I'm studying socket programming and have trouble when simulate a FTP server (I don't want to use pyftpdlib). The problem is when the client want to list the directory (LIST command) on the server, I do not find a way to send directory contents. here is the code: … | |
I'M taking a Linux/Unix admin course from the Oreilly online school. But I'M having a hard time understanding tcp/ip section, it's really making my head spin. Here is some of the lesson, could someone please help clear this up for me? thanks. Network, Broadcast, and Subnets Let's give ourselves a … | |
Hey all! So my buddies and I have been in the OS programming class and we've gotten ourselves an idea. We get free range to the Unix server for academic purposes and we thought it might be fun to try and write a PTC server so we can chat across … | |
I'm attempting to recreate the Unix shell program "todo.txt" using C++ on Windows. An example use of my program in the Command Prompt would be: [CODE]>todo /A "I like cheese."[/CODE] which would append the item "I like cheese." to the file "todo.txt". In my program, there is a line which … | |
In a shell script, I want to 'spool' (record) the shell prompt & command typed alongwith its output into a file. eg: In the script, if I give a 'ls' command, the file should contain: [CODE] <<root@server ~>>$ ls a b c.txt <<root@server ~>>$ [/CODE] i.e. the command as if … | |
I am taking a data structures class and we are using the standard gcc compiler on a unix system. This is fine and I have no troubles using it, but I would like to begin using an IDE for my labs. I am trying Visual Studio 2010 Professional with my … | |
hey everyone this is my situation. i am taking a programing course that introduces you to a few languages. the first one is C now im a java guy (not very good with it yet) im still learning but i understand the basic concepts so im not totally in the … | |
Hey all. I don't want to be one of those that sounds like HW but they didn't say it was so I'll be honest, this is HW but I feel like I've done enough that it's reasonable to ask for a little help here. This is a snippet from a … | |
hi everyone is there's any different between linux and unix ??? | |
Hi, well I have written something that compiles and runs fine with a different compiler, but when trying to use a g++ compiler, I get errors when compiling in a unix environment. Here is the command line I have used: [CODE]g++ Agent.h Agent.cpp Driver.C g++: Compilation of header file requested. … | |
Hey all! Long time reader, first time poster! So I'm trying to communicated between two processes on a UNIX machine using shared memory. I believe everything in this program is working fine except for how I'm attempting to call the memory to check. Basically the parent process writes to the … | |
Does anyone know if its possible to type in a number and get the resulting ASCII characters in a batch file? I think in Unix based machines you type the command then \042 or whatever number you want, but I don't know if you can do it in batch files... | |
hi I'm new to unix and i'm taking a tutorial about it , but they mentioned something like the X window system and i don't know what is it ? , so can any one explain it for me , and I'll be thankful. | |
Hey everyone, We're trying to figure out if it's possible to use winsock on an AIX system? If not, is there any native support in C++ for unix based machines and e-mail support, without importing 3rd party libraries? | |
I woulld like to try out motion detection using a webcam in PHP. Would it be possible to do it in Windows? I have already done a google search but the script available is for Unix | |
I have these strings as $remaining_time: "3h5m" "4h9m" "15m" "17h" "6d17h" What I want to do is be able to parse through them and output the results in unix format so I can add them up to my $start_time (in unix timestamp) to get the end time. Any suggestions how … | |
What I want to do is to take the previous day's logfile, strip out the search phrases and insert these into a mysql db. Currently using Deep Log Analyser to manually lift the search terms, but I's appreciate some pointers as to how the parsing could be done by a … | |
Is it possible to somehow use the winsock API on a unix machine? | |
I don’t know why my operator += and operator + string class member functions are taking so long to do their job and are so inefficient compared to the Standard C++ Library String Class. Its not that they don’t work; its just that they are slower by a factor of … | |
![]() | Hey guys, it's been quite a while since i've been on here :P I'm fiddling around with the Go language. However, I'd much rather have a build script that'll compile the program for me than typing in the lines of code necessary every time: [CODE] 6g hello.go 6l hello.6 ./6.out … |
[code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0233)[url]http://employer.dice.com/talentmatch/servlet/TalentmatchSearch?op=201&dockey=xml/5/8/588dc5c2940163a08ac76fd58199497b@endecaindex&cskr=1&ranking=0&FREE_TEXT=oracle%2Boracles%2B&DESIRED_POSITION=%2B&RECENT_EMPLOYER=%2B&SCHOOL_NAME=%2B[/url] --> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>About Steve Peters </title> <style type="text/css"> #wrapper { width: 318px; } #btnHeader { background-image: url( /assets/images/notes_head.gif ); width: 318px; height: 36px; padding: 0; margin: 0; font-size: 11px; font-family: Arial, Helvetica, sans-serif; … | |
#This is a homework assignment# I need to calculate how many seconds old I am in C. I'm thinking that I can take my birthday as user input and convert it to a date with strptime. I then would like to take the present date and put both it and … | |
| |
When I try to build a C++ project I get the error message in the title line. I am trying to help my son move his development from a unix cluster to his laptop. He is running Windows XP Pro and has installed the Eclipse IDE for C/C++ Developers. The … | |
Hi All, I wonder if anyone could help? I have a large Java program which needs at various points to run UNIX commands. The only wayI have found to do this is below (although I would have liked the program to output all terminal commands into the same window (shell) … | |
i have run 2 nic cards in an assortment of computers. the reason is that the server is unix based & the router modem for the web only has a command base interface for router settings. so we decided that the second nic card will be used for a p2p … | |
hi everyone i'm new to unix/linux . almost know nothing about it , but i wants to learn about it . so how can i get it on my pc . now i use windows xp |
The End.