140 Topics

Member Avatar for
Member Avatar for doomfrawen

Hello friends, I am writing a program that behaves like a (Linux)shell (but it's not really a shell because it does not interpret commands itself). It will read some commands like in Linux shell and then run the command in the same window of course. The standard MSDOS shell does …

Member Avatar for doomfrawen
0
660
Member Avatar for ksyz_1

Hello, I am trying to connect a unix server using ssh (phpseclib) and running an external program like 'C' program. I am using exec() to run .exe. My code looks this way [CODE]echo $ssh->exec('./demo.exe');[/CODE] demo.exe is a executable for program to add two numbers and the inputs are hardcoded within …

Member Avatar for ksyz_1
0
118
Member Avatar for mordicaii

If I try to use ld -T <script>, it fails and throws an error saying "ld: unknown option: -T", it does the same thing with --script. Am I missing something, or has the ability to use a linker script been completely removed?

Member Avatar for JasonHippy
0
101
Member Avatar for inquisitivemind

Hi could anyone here tell me how to list the daemons that are running in a unix machine ? Thanks for all the help.

0
126
Member Avatar for evinkeating

I have a program that works fine under windows, but when i run it on Unix I get a very slightly diffent set of results, followed by a 'segmentation fault' message. I'm at a loss to explain why. Any ideas?

Member Avatar for evinkeating
0
869
Member Avatar for evinkeating

I've a 2-d array declared as such [CODE]lower_tri = (float **)malloc(sizeof(float *)*(dimention)); for(i =0; i < dimention; ++i) lower_tri[i] = (float *)malloc(sizeof(float)*(i+1));[/CODE] So that it looks like... [] [][] [][][] [][][][] ... However, it causes a segmentation fault when I try to de-allocate the array with [CODE]free(lower_tri);[/CODE] (only in unix, …

Member Avatar for Ancient Dragon
0
202
Member Avatar for zageela

Hi All, I am adding a calendar coded in cgi to my page.As i can use a JS calendar also but it have to do it with cgi only. my present calendar prints current month on the page.Now here the problem comes. I want each & every date to be …

Member Avatar for mitchems
0
795
Member Avatar for evinkeating

I'm working on a C program that needs a lot of dynamic memory allocation of 1-D and 2-D arrays. The program works fine when I compile and run it using windows and Visual C++, but when I compile and run it in a Unix environment, I get slightly different results, …

Member Avatar for Ancient Dragon
0
182
Member Avatar for AlanWilhelm

Hello, I put together a small tutorial that I wanted to share. I found only scattered information on this and put a more complete tutorial together with code and comments. [URL="http://blog.ajwilhelm.net/archives/7"]Parsing Excel files with Python[/URL]

1
85
Member Avatar for khess

To you, my loyal readers, I must offer up a sincere apology for my recent post, [URL="http://www.daniweb.com/news/story254705.html"]Five *nix Myths Busted[/URL], and am posting this full retraction for that post. To fully drive home my retraction and refute any myths about my competence with Linux or Unix, I am going to …

Member Avatar for jonkx
0
1K
Member Avatar for khess

Earlier this evening, I had a conversation with a friend and colleague in the IT business. He runs his own independent computer consulting firm and we were trading war stories about customers, hardware vendors and work sharing. Work sharing, also known as "farming out" work that you can't do yourself …

Member Avatar for BestJewSinceJC
1
465
Member Avatar for khess

See SCO keep going. Stop SCO Stop. Seriously Stop SCO Stop. In a seriously OMG moment yesterday, [URL="http://www.sco.com"]SCO[/URL] lost another battle in its UNIX ownership claims. The Utah jury decided that [URL="http://www.novell.com"]Novell[/URL], in fact, did not transfer the UNIX copyrights to SCO when they sold UNIXWare to them years before. …

Member Avatar for jameskatt
0
532
Member Avatar for bohongtw

hi there i have an assignment about writing Cshell with some features i m not gonna ask plz gimme the codes or smth. but i need some advice how to start writing it, what to do maybe smn can show me ways to do it , thanks for help here …

Member Avatar for Aia
0
168
Member Avatar for freakzilla

Hi guys, I have been trying to implement a shared circular queue between 2 processes. My structures are as follows: [code] typedef struct client_entry { long shmid; int pid; struct client_entry *next; struct client_entry *prev; } client_entry_t; typedef struct client_queue { unsigned int num_entries; long current_shmid; int notify; struct client_entry …

Member Avatar for Salem
0
168
Member Avatar for Sobakaa

Hello everybody! I've wrote a very simple echo server, based on a book about LInux socket programming example and it works just fine. My only problem is that i want to use select() function to handle several connections at one time. I've read lots of reference concerning that function and …

Member Avatar for Sobakaa
0
227
Member Avatar for paddy8788

Hi! I am trying to figure a way to measure a process' system time. The Unix's time command seems in effective because it only displays the result in seconds but my program is small so second is inappropriate. I also tried to use gprof. However gprof uses atexit() to trace …

Member Avatar for paddy8788
0
145
Member Avatar for connColl

Hello, <br /><br /> We are struggling with getting IIS 6 (Win 2003 server) to connect to a Samba share that contains some dynamically generated resources. We are able to mount the drive on the Windows server and create a Virtual Directory to that new drive using 'Connect As' with …

0
137
Member Avatar for khess

I love mythology and there's nothing like hearing a technology myth to make my day complete. Just today someone applied one of the following myths in a conversation with me. I didn't say anything but it gave me the idea for this post. Here are the five myths related to …

Member Avatar for ripratm
0
2K
Member Avatar for afireinside7710

hey guys, first post. I have a program that takes a file from a windows box, and FTP's it to a unix/linux box. The program works fine, however there is something i want to add to it. I want the program to send 2 commands to the unix box while …

Member Avatar for programmersbook
0
197
Member Avatar for khess

I've done a bit of research on Windows 7 Enterprise to discover some of its new features and to uncover its secrets. From what I've seen so far, [URL="http://www.microsoft.com"]Microsoft[/URL] has provided some interesting Linux-esque features that might accidentally boost Linux adoption as a side effect. The two primary features to …

Member Avatar for MikeAinOz
1
611
Member Avatar for PopeJareth

Can Someone tell me why these files won't compile on unix but work fine (mostly) in windows? It looks like unix-land doesn't load the variables from the inherited class QueueArray into the proper scope. prog5.cpp is supposed to create 3 different types of Deque classes. each Deque inherits from ArrayQueue …

Member Avatar for PopeJareth
0
247
Member Avatar for onemanclapping

Hi, I'm an IT Engineering student and I have the task of doing, in C, a function that does on linux the equivalent of the 'locate' function. Can someone help me? I need ideas for how to read a file system! How can I list directories (to a string or …

0
112
Member Avatar for DARK_BYTE

I'm writing a program that needs to use only the Unix system calls open, read and write to get and print data!The problem is that the program doesn't allow me to input the marital status of the first student! Am I missing something? Here is the code: [code] #include<stdio.h> #include …

Member Avatar for DARK_BYTE
0
228
Member Avatar for zeeli

Hi, I am a total newbie when it comes to makefiles and now I'm in a need of one. I have a directory structure as follows: [CODE] Project_root/Makefile Project_root/src/ Project_root/src/widgets/ Project_root/include/ Project_root/include/widgets/ [/CODE] Each directory contains multiple source/header files. I need to build a shared library out of this directory. …

0
162
Member Avatar for khess

Just when you thought it was safe to return to those keyboards knowing that all is well with the world and the ownership of Unix is happy with its rightful owner, Novell; he's baaaack. I'm sure that I'm not the first to look at this latest news and say "WHAA? …

Member Avatar for NicAx64
0
468
Member Avatar for khess

OK, I can't resist this whole SCO thing, since it has again raised its ugly head. My [URL="http://www.daniweb.com/blogs/entry4658.html"]previous post[/URL] on the subject the other day drew a lot of attention from a diverse gaggle of readers and commenters so I thought I'd go back to the well at least once …

Member Avatar for decentralist
0
309
Member Avatar for happygeek

Did anyone else get just a wee zing of excitement at 11.30pm (GMT) last night? I will admit to raising my glass and downing a large Jim Beam Black in order to celebrate the fact that UNIX Time had hit 123 billion seconds. OK, so I am a geek, what …

Member Avatar for AceofSpades19
0
276
Member Avatar for khess

In a recent [URL="http://www.computerworld.com/pdfs/Novell_Replacement.pdf"]report[/URL] by ComputerWorld, Unix is losing major ground in the SAP data center space. HP-UX is losing at a rate of about 41% and AIX (IBM) is losing at a rate of 18%. And in the time period (roughly 2.5 years) between October 2005 through March 2008, …

Member Avatar for khess
0
244
Member Avatar for khess

[URL="http://www.sco.com"]SCO[/URL] is putting up two of its business units on the auction block: Mobile Business and its Unix OpenServer Business. Jeff Hunsaker, President and COO, stated that "The auction, we believe, is the best approach for us to move forward and also to exit bankruptcy." Ah, the agony of utter …

0
144
Member Avatar for khess

Linux will continue its soaring success in 2009. Yes, Linux is free and free is good but what about its other advantages over commercial Unix flavors and Windows? Here are the top seven reasons why Linux will continue to smash the competition in the face of the economy, the Cloud, …

Member Avatar for sammy123
0
318

The End.