1,293 Topics
How can I return the file modification time as an int (UNIX epoch)? [CODE]#include <time.h> #include <sys/stat.h> int *FILEMOD(char *FILENAME) { struct stat ATTRIBUTES; time_t MTIME; stat(FILENAME, &ATTRIBUTES); MTIME = ATTRIBUTES.st_mtime; return MTIME; } int main(void) { printf("%i",FILEMOD("file.txt")); return 0; }[/CODE] gcc errors: [ICODE]filemod.c: In function ‘FILEMOD’: mod.c:14: warning: return …
Hi there, So im working on this assignment where the user is supposed to input a variety of UNIX commands and they must behave as if one typed it into the terminal. My current problem lies with when a user tries to redirect the inputted commands to some file. Currently …
To create the registration account in my homepage, do I need to set up a database to store all usernames and passwords? If I do, how to set up the database on the unix server where my homepage is on?
I have an assignment to write a program using 1D and 2D parallel arrays with input coming from a .data file given to us. I am nearly a complete novice with writing code and right now I am having a very hard time getting my program to write any values …
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 …
Hi all – I am running Python 2.6.2 in a Windows XP Pro environment. I am trying to write my first python/cgi script combo and they must execute on a Linux websever. After surfing the web I realize that MS-DOS and Unix systems use different methods to identify end-of-line information …
what are the ways that a process can be created in UNIX apart from fork/vfork?
I am migrating scripts from UNIX server to a Linux. In the perl script it calls rcp to transfer files. It worked ok in UNIX but not in Linux, which has scp, I dont want to do scp now as this is a temporary Linux Box I am using. I …
hi i m sorry for this noob question but there something i don't get i was reading abt File format like PE for example i was wondering how is C unverisal on MAC win and unix since they use diffrent file format does C takes care of each file format …
one of my trusted friends said that even microsoft uses unix servers as a response to my comparison of unix vs windows servers. What do you think?
I am writing a sample chat-like function to learn how to use sockets in unix. I am using gcc. To send between clients of a tcp connection I need to encapsulate a bunch of different data: [code=c] typedef struct { short type; int messageID1; int messageID2; short messageID3; int ipAddr; …
I am a beginner in shell programming in Unix. My current problem is log file analysis based on a given time range for listed dates. The file is a long file and I need to sort IPs based on a user input through terminal. For example, from the end of …
This program is (as you can see in the notation) a homework assignment I'm doing for class. I wrote the whole thing, which as far as I can tell right now is logically functional. It takes commands from a user and uses them to denote what happens to a linked …
hi all, i am using a unix script to control various pieces of code, sometime i call this python script, HOW can i store the result of the python script INTO an array defined in my unix script ? thanx
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 …
from telnet application i want to run windows program. for example when i type vi, i want to run notepad.exe with the output of vi. how can i do that ? thanks.
Hi I am new to the Web Development side of Daniweb. I usually wander in the Python and Unix forums. It has been my loooong desire to create a website of my own.., but for some reason, I have never fully able to understand web programming!!:-O... I have finally managed …
i changed the directory using cd $HOME but i dont see any .profile files under that directory. am i missing it? or it can be under some other directory? is it required to have it?
I am using the file ex3test.c to run the following program, but the UNIX gives the errors: [38] $ gcc -o ex3test ex3test.c Undefined first referenced symbol in file discrete_uniform /tmp/scratch.hYayTQ/ccRDoT1o.o printFirst /tmp/scratch.hYayTQ/ccRDoT1o.o addToList /tmp/scratch.hYayTQ/ccRDoT1o.o printSecond /tmp/scratch.hYayTQ/ccRDoT1o.o disparity /tmp/scratch.hYayTQ/ccRDoT1o.o clearList /tmp/scratch.hYayTQ/ccRDoT1o.o ld: fatal: Symbol referencing errors. No output written to …
Hi Guys, I have a file with lots of similar records example shown at end, I want to be able to delete one of the records and have the following line of code which finds the record I need to delete, my question is now I have found the record …
What are some good Unix application developer books? Thanks.
What mkisofs options would you use to ensure the ISO loads and can run on Solaris 8/9/10 when the ISO is made from a Solaris 10 system? There are some pretty deep directories, but I don't know how deep. I also suspect there are some hidden files (start with ".") …
Good Afternoon, I'm sure it is possible and hopefully someone here can help me. I am looking to be able to send data from a form I have to a file server. Right now, I have it emailing the data but I am hoping to fully automate it by having …
I'm trying to sort an array which contains objects, but have hit a wall. I have a number of feeds that are placed into objects (WM). The feeds are placed in the order that they're loaded. I want them to be ordered w.r.t. pubDate. I'd rather not recode the whole …
Hi all, Myself, Vineeth from India - a new joinee to this great community :) I am a software engineer/System programmer with knowledge in Unix/Linux/Solaris. Would like to learn a lot and contribute a lot from/to my fellow community members! See you all in different threads in different posts! :) …
In unix if you create and open a file by using 9 digits numbers in the open function it seems to work but in C++ you only don't have a parameter to do that rather you have ios_base. Just wondering if there are owner,group and world settings that can be …
Hello there Unix & Linux Guru's and Gifted ones, Can anyone help me configure fetchmail on my redhat 9.0 This sounds to be silly but really I'm new to linux. I really need step by step installation and configuration on our company's required Redhat 9.0 (shrike) OS. Thank you and …
hi all, when i am running a Python script that i made, i get a list as a result ( i do not know the number of items stored in that list ) HOW can i return each element of the list and store in an array defined in a …
hi i am trying to use incbet.c alone . it is presently availabe as library (with its makefile) as given below . i wanted to know all the files used by incbet.c . i dont know details about make file . i tried to to look at GNU tutorial on …
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 …
Hackers managed to get root access to a large Internet Service Provider, reportedly via a zero day vulnerability over the weekend, and destroy data from 100,000 websites as a result. The UK-based ISP, VAServ, has [URL="http://www.theregister.co.uk/2009/06/08/webhost_attack/"]stated[/URL] that the attackers apparently exploited a vulnerability in virtualisation software called HyperTM in order …
As geeks everywhere engage in endless battles over which operating system is best, [URL="http://www.likewise.com/index.php"]Likewise Software[/URL] has come along with an idea I can really get behind. The identity management software vendor has cooked up with an ingenious plan to encourage a cease-fire among IT pros and donate some cold, hard …
Seems every time I write a piece suggesting open source as an option, I get a couple of comments warning readers about the scary complexities of open source licenses. So I decided to ask a guy who knows free and open source (FOSS) exactly what the deal was regarding FOSS …
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 …
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, …
[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 …
There are 5 things that every good Linux Administrator knows. Do you know what they are? They are in no particular order of importance: [B]1. Users are a Necessary Evil[/B] - Do you ever wonder why System Administrators seem so annoyed by you and your questions? It's because you are, …
Which hypervisor performs better, [url=http://www.xen.org/]Xen[/url] or VMware's [url=http://www.vmware.com/products/vi/esx/]ESX[/url]? That apparently depends on which organization you ask. But for a team that's tasked with choosing a virtualization platform, some impartial data would sure be helpful. "That's where we come in," said Michael Salsburg, director of the [url=http://www.cmg.org]Computer Measurement Group[/url], a non-profit …
A new application programming interface released this week gives development and test teams the ability to link their ground-based test systems with virtual operating systems accessed through a browser. It all comes from [url=http://www.skytap.com/]Skytap[/url], which earlier this year released [url=http://www.skytap.com/index.php?option=com_content&view=article&id=63&Itemid=120]Virtual Lab[/url], a Web-based infrastructure that provisions virtual hardware, software, networking …
Erik Anderson and Rob Landley are at it again. The guys who brought us the [URL=http://busybox.net/]BusyBox[/URL] toolset for resource-constrained Linux and Unix systems, together with the Software Freedom Law Center, have filed yet another GPL enforcement lawsuit for copyright infringement. This time it’s against [URL=http://www.extremenetworks.com/index.aspx]Extreme Networks Inc.[/URL], a maker of …
[URL="http://www.cmg.org/"]Computer Measurement Group[/URL] (CMG), the non-profit company many IT professionals rely on to provide guidance and advice on best practices for managing infrastructure, is gearing up for its annual conference in Las Vegas, NV this coming December. In advance of the event, organizers have announced that registration is open for …
Lawyers for [URL=http://busybox.net/]BusyBox[/URL], the open-source Unix utilities popular for use in embedded applications, filed two more copyright infringement lawsuits yesterday, claiming that Bell Microproducts and Super Micro Computer violated terms of the GNU General Public License that governs the software. “Before filing these lawsuits, we contacted both companies and gave …
Just when you thought it was safe to forget SCO and their ridiculous notions about suing IBM and others for infringing on their copyright ownership of UNIX, it isn't. It's been 5 years since SCO sent out its threatdown letters to large companies telling them that they may owe money …
Remember when SCO used to be known as a big fish in the Unix OS pond, well respected and pretty much a pillar in this particular vendor community? No, neither do I. The image of a company that sought to claim IBM had somehow inappropriately contributed to Linux development, a …
Hot on the heels of JavaFX, taking on the likes of Microsoft Silverlight and Adobe Flash, Sun looks set to formally unveil its plans for Project Indiana this week and attack the Linux developer heartlands. Solaris has long been known as the really secure Unix variant that sucks when it …
Open source means that it's not possible to pirate the software, right? Well, somehow OpenBSD developers have found out exactly how you can do that, by copying sections of some Linux wireless drivers (released under the GPL of course) and then releasing them under OpenBSD's less-restrictive license, allowing proprietary use. …
Recently I have decided to switch from Ubuntu linux to Freebsd and here I am going to outline why. 1. [B]The Ubuntification of linux:[/B] Lately I have noticed a trend on social bookmarking sites, mainly digg, which have people posting articles with titles like "Ubuntu Tutorials" or something similar. In …
I recently found an article that included a simple theory on how to see whether or not your computer is being watched by the nsa. Ok so basically the background on this is that the nsa has been taking information out of AT&T's San Francisco's offices in a secret room. …
Lately, it appears that computer certifications are becoming one of the most important credentials that employers are looking for. It seems that while employers are looking for this key asset, corporations are starting to put out more certifications for people to get. Microsoft and Red Hat both have a 3 …
First off, C++ does not know anything about the I/O device you are using. It can be a keyboard and monitor, or a file, or a network connection, or anything which can do I/O. What that means is that there is no standard way to do this in C++. That …
The End.