1,446 Topics

Member Avatar for
Member Avatar for ahamed101

Hi everyone, Need a small help. I need to read the data from stdin (standard input) without hitting enter. Need to read the data as in and when they are typed in until EOF (CTRL + D as I am using UNIX) is encountered. I tried, getc() - requires ENTER …

Member Avatar for ahamed101
0
491
Member Avatar for source2exe

Hi all, Please forgive me if you saw this post in other forums as well. I just do not seem to get any answer.... A. My Environment ============== I am using RedHat Linux, version 2.6.18-53.el5. When I type less --version I get: less 394 Copyright © 1984-2005 Mark Nudelman ... …

Member Avatar for source2exe
0
167
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
152
Member Avatar for Doctor Inferno

[CODE]<?php /************************************************* * Max's File Uploader * * Version: 1.0 * Date: 2007-11-26 * ****************************************************/ class maxUpload{ var $uploadLocation; /** * Constructor to initialize class varaibles * The uploadLocation will be set to the actual * working directory * * @return maxUpload */ function maxUpload(){ $this->uploadLocation = getcwd().DIRECTORY_SEPARATOR; } /** …

Member Avatar for pritaeas
0
81
Member Avatar for sobam15

Hi, I am a college student who recently signed up for a Computer Science course despite being an utter mess when it comes to math or science (as an aspiring writer, I have a way with words instead). I needed the extra 3 credits and didn't really have any other …

Member Avatar for vkumar42
0
87
Member Avatar for Sci@phy

Hello. Any way of preventing multiple instances of executables? I'm writing a program that uses a file, it would be quite messy if someone would start another instance of same program. If it depends on OS, I would like to see solutions for windows and unix-type (linux) systems. Thanx

Member Avatar for Duoas
0
410
Member Avatar for alberttruism

Greetings to the entire DaniQeb community (lurkers included). I am a CS n00b as far as the study and practice is concerned but, I've been circling the rim for many years via a steady diet of Sci-Fi, psychics, biology, and net Art. I'm fiercely eager to learn this stuff. I …

Member Avatar for alberttruism
0
165
Member Avatar for Dirus

In the past I have only used Windows 2003 Server to run a small computer lab. Active Domain was simple enough to understand for a person that had never dealt with domain servers before. I am in charge of a new computer lab now and have been giving thought to …

Member Avatar for DimaYasny
0
148
Member Avatar for webdani

Hi All, Below is the code I use in an Unix environment to connect to my organization's mail server(This is to read mails in my Inbox). [code=Java] import javax.mail.*; import java.sql.*; import javax.mail.internet.*; import java.util.*; public class readm { public static void main(String args[]) throws MessagingException { //Properties props = …

Member Avatar for regent_royal
0
481
Member Avatar for chanderk

Hi All, I am very new to the web-server world with a decent level of understanding in www and little knowledge on Unix. I have a laptop 1.5GHz, pentium core 2 duo, with Ubuntu installed in it. I have a DSL connection and I dont have a domain name. I …

Member Avatar for bigtalk
0
151
Member Avatar for bwasson

I recently received an assignment that is, in my opinion, vastly above my paygrade and current knowledge, but I am dead set on completing it in a timely manner. I've posted this on another tech forum with zero results, so I appeal to those in the industry who hopefully have …

Member Avatar for Chaky
0
175
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
154
Member Avatar for shobhit123

kindly expalin the following doubt on run method can you explain how run method is called and who calls the run method. Also can you explain that if a main method has one more thread then how the scheduling is done.How the priority is set for main and the other …

Member Avatar for masijade
0
102
Member Avatar for xyzt

Hello I need an editor or IDE to edit source files over FTP. Sources and the development environment is on a Unix server and I need to edit these files. There's an editor or an IDE plugin to do this? Thanks in advance.

Member Avatar for jencas
0
110
Member Avatar for AON07

Hey all i'm fairly new to php and need some help with this code. I'm not recieving any errors but it wont work. what i'm trying to do is up load a picture from a form. i want to copy the picture into a folder named "images" then keep all …

Member Avatar for AON07
0
268
Member Avatar for bleh1318

Hi all, I just wanted to ask for your guys advice on two topics. The first one is I'm wondering what is the best library to use for a hash table in a C++, what do you guys use? Or do you implement your own? The second thing is, when …

Member Avatar for Narue
0
120
Member Avatar for psycheheaven

I have the following code, which creates children process. Children process is a shell script on unix platform, which prints two lines to stdout. Parent process reads that output via the pipe: [code=c++] char *shell_command = "cd /home/user; for infofile in *.info ; do grep -q 'PID: 10631$' ${infofile} ; …

Member Avatar for psycheheaven
0
110
Member Avatar for pureclass

A certain multinational company (provides coverage of sporting events like olympics) has decided to acquire a system that will definitely provide big benefits to them in terms of its operations. In relation to this, other software products valuable to the business have also been procured upon the recommendation of technical …

Member Avatar for Ronaldo333
0
168
Member Avatar for xcesmess

I'm fairly new to the C++ world (did some C work in the past years ago) so I'm a little rusty on some things :) I've got a small table in a database and I'm trying to grab some date information out of a UNIX EPOCH time stamp (all seconds). …

Member Avatar for Ancient Dragon
1
111
Member Avatar for mackone

Internal theft and sabotage can hit companies hard in many ways, It should be clear that companies need to monitor insiders as aggressively as they do outsiders. However, policing insiders can prove challenging given the privileged access they require to do their jobs. Here are the five most common methods …

0
54
Member Avatar for midget

I've been trying to figure this out for months so if someone could tell me how stupid I am that would be great... The first php.ini file works for sharing sessions from domain to subdomain no prob... with the simple inclusion of session.cookie_domain = "mydomain.com" I've tried them both with …

Member Avatar for digital-ether
0
684
Member Avatar for isaac32767

I work for a certain Unix vendor. Our network infrastructure is pure Unix, and all our DNS servers use BIND. No AD. That's not going to change. When I plug a Windows PC into this network, it gets a FQDN that looks something like dhcp0131.westcoast.unixco.com, and a connection-specific suffix of …

0
34
Member Avatar for bigjonah

My name is John and I have about 35* years experience in the IT field but certainly not as a developer. I started as a hardware tech back in the CPM days if anyone here is old enough to remember that. I have 15 years industry experience in Windows and …

Member Avatar for sittas87
0
123
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
88
Member Avatar for MAD_DOG

Shell Programming for UNIX/Linux is finally over thank god! C/C++/Perl I hate that shit lol it's over and I learned something. 1&>2 = I dont really know if this is right lol or 1>&2 = Something is redirecting something lol

Member Avatar for eggi
0
590
Member Avatar for richM
Member Avatar for richM
0
47
Member Avatar for tmondragon

My name is Todd Mondragon and I am a Senior Unix Admin by trade. I have been working financials now for a bit and am quite happy in a large corporate environment, though I do miss coming in to work in jeans and a Sex Pistols shirt. My hobbies are …

Member Avatar for zandiago
0
97
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
80
Member Avatar for skelly16

Hi All Anyway to add a note inside the email saying here is your file after attching a file in unix?? For example my script is fine attaching the excel file but i would like a message inside the mail too and not in the subject title. [QUOTE]/usr/bin/uuencode $adhocreport $adhocreport …

Member Avatar for DimaYasny
0
147
Member Avatar for eladio_ees

Hello everyone!!, i have a question for you, do you know any libraries to develop wireless network in C/C++ but available for linux/unix?¿ Thanks!!

0
72
Member Avatar for kmoritz

I am an IT manager for an Aerospace contractor. I started my career as a Unix admin in SunOS and Solaris. I am a runner training for my first marathon. I started running at the age of 40. Biking has become a good cross train as well. I have kids …

Member Avatar for Vilice
0
83
Member Avatar for Gazzaramma

Good Day, My name is Gary and I have just singed up to Daniweb. I am currently looking into how to setup an ecommerce website for my mother in law who hands makes her own jewlery in South Africa. What she is wanting is a website to showcase her pieces …

Member Avatar for mychalberry
0
188
Member Avatar for cam875

Is it possible to code the client application using winsock API so it can run for windows but the server with berkeley socket API so it can run for linux. I mean will they be able to establish a solid connection even though the socket API's and OS's are different. …

Member Avatar for cam875
0
239
Member Avatar for stooartbaby

Hi Everyone, Is it possible to convert a .sh script to VBS? If so, how should I go about this pls? The issue is that i have found a script which does exactly what i need, but it is written as a .sh we are a pure windows shop and …

Member Avatar for stooartbaby
0
921
Member Avatar for Cosa

Hi, i am trying to write a program that would work much like the tail command in UNIX. The idea is to print the last 10 lines of a file. I started off by finding out how many lines were in the file, then attempted to seek to the appropriate …

Member Avatar for Cosa
0
4K
Member Avatar for vadan

Hi, Iam very much new to programming and C++ please help me I have an application that uses socket++ classes on Unix (AIX) environment I have included #include<sockinet.h> in two of my .cpp files and I have socket++ source in my temp directory when iam trying to compile my application …

Member Avatar for Ancient Dragon
0
79
Member Avatar for Defcon106

Hi, I'm new to the whole open source racket and was wondering what Unix or Linux OS is the easiest to work with. I just need something to get me started until I can learn about open source a little more and learn some programming. I was looking into Ubuntu, …

Member Avatar for lilith2k3
0
161
Member Avatar for xyzt

What's the best way to transfer image files from the client application to the server application?using TCP or FTP? and a second question: there's a way for portable fork() ? i want it to be portable for Linux,Unix and MS Windows...

Member Avatar for jencas
0
67
Member Avatar for SonxQ7

Trying to retrieve the OS environmental variable for a user... I looked at this code [code] import java.io.*; import java.util.*; public class ReadEnv { public static Properties getEnvVars() throws Throwable { Process p = null; Properties envVars = new Properties(); Runtime r = Runtime.getRuntime(); String OS = System.getProperty("os.name").toLowerCase(); // System.out.println(OS); …

Member Avatar for SonxQ7
0
163
Member Avatar for k2k

hi, I tried to send mail to another user like below: mail -s "subject" [email]name@ce.uml.edu[/email] hi, this is the body of the letter. (. return ) and it returns dead.letter.. why? and i tried it with another unix system and the mail was just lost. Can anyone please tell me …

Member Avatar for Dsiembab
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
140
Member Avatar for hannehomuth

Hello Everyone, at first thank you for reading this post. I've searched nearly 4 Hours the whole Internet but did not find an answer which pleased we well. Does anyone know how get access to the gnome keyring tool through dbus in an Java Application. I shall write an Java …

Member Avatar for hannehomuth
0
181
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
533
Member Avatar for rusman

I'd like to create a script that will run a command, parse the output for certain fields/words and then email that information to me if it meets simple criteria. For example, when run, the command will output several lines. I'll need to grab the Name: Test1 Type: Windows Active: No …

Member Avatar for eggi
0
159
Member Avatar for shraddha_gupta

I want to assign a list of months in an array sort of arr[]={'Jan', 'Feb',:Mar'.....} What is the syntax for it in unix.

Member Avatar for DimaYasny
0
39
Member Avatar for kaleshwar

ok before someone points me to google or to the search box, let me state that I have already done the searching. The solutions I get either state using winsock(which happens to be windows only):( or parsing the output of ifconfig(which happens to be linux and maybe unix only):( and …

Member Avatar for Ancient Dragon
0
107
Member Avatar for brianK

[B]hie lm Brian and new to this web and lm studyng networking and pc maintenance. l need help in understanding tcp/ip and unix[/B]

Member Avatar for selfhelpebooks
0
25
Member Avatar for ymf

Hi, I'm going over this topic in unix and i'd be glad if someone could explain this bit of script: [ICODE]sed 's/\(abc\)*/xyz/'[/ICODE] so the input would be [ICODE]abcabcabc[/ICODE] which results in [ICODE]xyz[/ICODE] Also how come 'xyz' doesnt repeat 3 times because the input is 'abc' x 3 ? Thanks in …

Member Avatar for ymf
0
86
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
76
Member Avatar for ff4930

Hello everyone, This program compiles fine and runs fine in Eclipse(C++ IDE) but when I compile it in UNIX and Visual Studio its fine but when I run it, it gives me an error. For Unix is segmentation fault The problem is when I initialize VNT, it calls Matrix and …

Member Avatar for ff4930
0
79

The End.