1,446 Topics

Member Avatar for
Member Avatar for avataralien

I am trying to create a cpp file that will enable user to download the content from a web URL & stored it to a desired html file. I am running on Linux. The program will call GNU wget CLI program to grab the content & stored it to a …

Member Avatar for avataralien
0
189
Member Avatar for humantaco

Can anyone post the code to these? 2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out …

Member Avatar for Fbody
0
154
Member Avatar for humantaco

2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out 2.2 Escape this! Write a different program …

Member Avatar for Fbody
0
163
Member Avatar for jdavenport

Hello, I need to access a Unidata database residing on an AIX unix server using CF from a Windows server. I currently access this same db/server from CF on my linux server with no problem. I set up the new datasource in CF Admin on the windows server using the …

Member Avatar for AVM
0
147
Member Avatar for widapol

Hi all, I'm learning socket programming in Unix. My jobs is sending some frames over TCP/IP Client-Server model, ex Hello, Ack, Bye packets. Each frames have a ID field, which helps we know which packet the server/client received. For example, 1 for Hello, 2 for Ack and 3 for Bye. …

Member Avatar for widapol
0
634
Member Avatar for skecher
Member Avatar for chiwawa10
0
93
Member Avatar for Jishnu

Hi all, I was reading Vijaya Mukhi's The 'C' Odyssey UNIX - The Open-Boundless C (1st ed.). This is in reference to program 43 in the first chapter when file buffering is introduced. [CODE]#include <stdio.h> int main() { FILE *fp; char buff[11]; int pid; fp=fopen("baby1","r"); pid=fork(); if(!pid) { printf("initial file …

Member Avatar for Jishnu
1
594
Member Avatar for popin

[I]Summary[/I] [QUOTE] new laptop would ideally like to partition the hd and install a unix based system and xp that came with the laptop, no media backup came with laptop, looking for advice on what to go with and what to do thank you even if you just took time …

Member Avatar for popin
0
292
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
678
Member Avatar for kloony

Can anyone please explain to me the following strange phenomenon? I have a code in C, and when I compile it is Windows Platform compiler (Borland 5.5), they compiling is fine and when I execute the program, everything turns out ok. However, when I use the same code and compile …

Member Avatar for creeps
0
199
Member Avatar for hotbaws11

Hi All, I'm looking for some expert help on sed/script to work out the best way to transform one xml format into another however there are a few complexities around translation. The extra complexities are to: 1) take the start and stop time (YYYYMMDDHHMMSS) and convert to start time to …

0
45
Member Avatar for JayNak

Hi Everyone, Just joined. I'm from Central Wisconsin in the U.S. and I'm an IT professional with 27 years in the industry. I am primarily an Infrastructure person as I have supported AD, Networks, Win-PC/Servers, Tandems, VAX's, HP-Unix and AS/400s. Through it all I have had need to write code …

0
23
Member Avatar for P-Geist

Hey guys, I am not sure where this should go but seems as gOS is a Unix like OS this seemed suitable. Anyway all i wanted to know is where i can access and use the Google Chrome OS.? Thanks, P-Geist

Member Avatar for GuitarComet
0
88
Member Avatar for vasuv

Hi All, This is Vasu.I am new to this software field.Now I started learning Unix n Oracle. Daily we are doing the following job manually.But I am planning to automate it.So any one please help me to write a script for the following requirement.It's very helpful to learn new things. …

Member Avatar for vasuv
0
89
Member Avatar for n.utiu

Few days ago I finished making my own (quite primitive) chat server with SocketServer. I haven't had any problems with it apart from the designing of the chat protocol: I made a very sketchy protocol for messaging. The client just sent unix-like commands to the server to do certain opperations: …

Member Avatar for n.utiu
0
115
Member Avatar for newbie_to_cpp

Hi All, I am new to C++. I am practicing loops and i need some help. This one behaves strangely. What i want is for this loop to accept numbers from 1 to 4 for options (strictly numbers) and no other characters. When executed and run, if the input is …

Member Avatar for ceriamultimedia
0
102
Member Avatar for gh0st0

Hi Folks, Windows/Python3.1.2 I'm totally at a loss with this one... The code is supposed to open a file (postscript with UNIX LF-only EOL characters), look for and change a line, then write the lines back. It works fine, except for the fact that I can't dissuade Python from writing …

Member Avatar for gh0st0
0
161
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
123
Member Avatar for gkkmath

Hi Experts, I'm writing a C program (cut/paste below) to establish a TCP socket connection from my Mac Pro to a Windows XP-based test instrument sitting next to it over LAN (Ethernet). The program compiles without any warnings or errors. But executing the code using GNU Debugger, I can see …

Member Avatar for gkkmath
0
170
Member Avatar for APatrizio

[ATTACH=RIGHT]16891[/ATTACH]After a 2009 to forget, the server business is rebounding well, although some segments are doing better than others. [URL="http://www.idc.com/getdoc.jsp?containerId=prUS22467210"]According to market researcher International Data Corp. (IDC)[/URL], worldwide factory revenue for servers grew 11 percent year-over-year in the second quarter of this year to $10.9 billion and unit sales grew …

1
269
Member Avatar for winbatch

I am trying to write a variable argument function on SUN solaris. According to MSDN, the _vscprintf function that I'm using on windows should work on unix as ANSI is listed. [b]_vscprintf[/b]<stdio.h>ANSI, Win 98, Win Me, Win NT, Win 2000, Win XP [size=2]However, including stdio.h doesn't seem to help. Is …

Member Avatar for noormanman
0
601
Member Avatar for k2k

I am trying to setup a dns server with fedora 11. what I have done: 1. /etc/init.d/named start 2. chkconfig --list named ---> return status ok, both 3 and 5 are on 3. "/etc/resolv.conf" as below // does it look okay? nameserver 192.168.1.1 //my router, nameserver 127.0.0.1 //this machine itself. …

Member Avatar for hyerutko
0
254
Member Avatar for asadriz

Can I install a normal Unix OS loaded system as a firewall between DSL and Switch, please let me know if its possible and how?

Member Avatar for hyerutko
0
218
Member Avatar for Tommymac501

Pyscripter seems to be hard coded to use versions 2.3 to 2.6, and skips over 2.7, moving on to 3.0 and 3.1 - niether which seem to play nice with Unix data. Considering 2.7 is Python.org's current stable release, does anyone know how to get Pyscripter to use it? I've …

Member Avatar for pyscripter
0
416
Member Avatar for rmoliva

Hello everyone, My name is Roni M. Oliva I am from the island of Guam. I spent 12 years in the U.S. Army as a research and development tech where I saw the wonders of bring together several weapons system with my friends at White Sands Missile Range in the …

Member Avatar for qlipboard
0
168
Member Avatar for watery87

Hi guys, am currently creating a client/server program. However im having trouble reading from a text file. Im not sure whether fgets or fread is better in my case. Basically my program requires user to input a country, and the program will display its details out.My question is, what method …

Member Avatar for watery87
0
479
Member Avatar for Cup of Squirrel

I want to make an ftp folder on the web, but not sure how to do it. I have a laptop which will suffice for access, so I would rather use that then buy a host. I have no Unix or Linux systems either. Also what are the safety risks …

Member Avatar for zewdenesh
0
153
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
118
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
139
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
891
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
209
Member Avatar for thehivetyrant

Hi there, I'm making a simple shell program in [B]pico using Unix[/B]. I was given most the code from a tutor and added bits to it, it's supposed to go to a prompt allowing user to type but instead it does nothing. [B]No errors are shown.[/B] Btw: i use [B]gcc …

Member Avatar for thehivetyrant
0
134
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
799
Member Avatar for phphit

Hello Everyone, I have table name schedule in my database. There is field sch_time in that. sch_time stores time in GMT. I also have timestmp field which stores data in unix format. The time stored in sch_time is of future date i.e. schedule of some event. This events are displayed …

Member Avatar for phphit
0
335
Member Avatar for oldbamaguy

I am 71, a retired computer programmer who last worked on a Cray YMP using UNIX and I wrote programs in C about 1990. I have been retired now for 15+ years. I spend some time of the DirecTV forum and the DBSTALK forum discussing Directv HD-DVRs. I had a …

Member Avatar for oldbamaguy
0
180
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
185
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
89
Member Avatar for titotoms

Hi, What is a log file?What is its purpose?How do I open, read and write to log files? Thanks, Toms

Member Avatar for Lalchand Saini
0
124
Member Avatar for dansnyderECE

I chopped down my make file so I can compile a C++ program with very few, but some flags set to see if I can determine if they are working. The following is my make file section on C++ flags: [CODE]# Common compiler flags CFLAGS = -mips1 -Wa,-non_shared \ -mno-abicalls …

Member Avatar for vijayan121
0
556
Member Avatar for Iron_Cross
Member Avatar for khess

In the latest episode of the [URL="http://www.computerworld.com/s/article/9179007/SCO_appeals_ruling_in_Novell_case"]story that never ends[/URL], [URL="http://www.sco.com"]SCO[/URL] filed an appeal in the [URL="http://www.novell.com/prblogs/?p=2153"]closed[/URL] case against [URL="http://www.novell.com"]Novell[/URL]. Everyone in the Linux and Open Source Communities thought the case was finally brought to a close when the judge declared that Novell is the owner of UNIX copyrights. The …

0
319
Member Avatar for Pawan Tolia

Can some body help in writing the shell script to copy the nightly file from windows server to unix server. Thanks in advance

Member Avatar for sonja19
0
113
Member Avatar for Member 784878

How to convert following dos batch code to unix shell:- echo Database username and password will be taken from liquibase.properties file.... setlocal ENABLEEXTENSIONS for /f "tokens=1* delims==" %%a in (liquibase.properties) do ( if "%%a"=="username" set dbuser=%%b if "%%a"=="password" set dbpwd=%%b if "%%a"=="url" set dburl=%%b ) echo. echo UserName is:=%dbuser% echo …

Member Avatar for griswolf
0
147
Member Avatar for Daqpan

I can't believe I'm even having to ask this rather simple question but I wouldn't normally use C++ for this, and I'm caught on a snag. I have some files filled with many entries like this (from unix time command): [code] real 0m0.475s user 0m0.091s sys 0m0.028s [/code] For each …

Member Avatar for dusktreader
0
135
Member Avatar for Tommymac501

We get files from a unix system that are delimited with linefeed only, this is not a problem. The problem is that within some of the fields themselves, there are carraige controls ("\r\n"). Reading the file using OS will see a row like this and stop reading at the crlf. …

Member Avatar for TrustyTony
0
11K
Member Avatar for crystaliao

hi everyone, Originally I had a script like: telnet host port then type STATUS for checking remote server,local server status and connection. In order to omit typing "STATUS", now I'm trying combine these two commands into one line, how to write it? or do we have another way to achieve …

Member Avatar for griswolf
0
207
Member Avatar for bhargavi52

Dearall i,ve completed training on rational clearcase on unix and want to do a certification on essentials of cleacase.so, please help me out by mentioning the procedure for applying and the books to be referred to get through the certification.ur help will be appreciated

Member Avatar for manoj_v1in
0
256
Member Avatar for srdva59

hi, i want convert the time stamp unix format to hours and days i have this: $date = trim(date('H:i:s', $ofwhat)); $ida = trim(date('d', $ofwhat)) -1; if ($ida >0) {if ($ida==1) { $dia= $ida. " day, "; } } if ($ida >0) { if ($ida>1) { $dia= $ida. " days, "; …

Member Avatar for almostbob
0
101
Member Avatar for oimenoi

I am keep having the "No overload for method 'GenerateSignature' takes 9 arguments" problem. Can you please tell me what is wrong with this class. This code is the sample from the Oauth.net . I think it too old for my asp.net 3.5 or 4.0. My page. [CODE]<%@ Page Language="C#" …

Member Avatar for oimenoi
0
108
Member Avatar for aliyami90

Hi everybody . i have a problem that i have been trying to solve for weeks can u help. this is bonus problem given to me by my professor in college. hers is the description: menu driven library: 1. list books 2. add books 3. find books a. by id …

Member Avatar for NathanOliver
0
829

The End.