1,446 Topics

Member Avatar for
Member Avatar for jammalg

Where I work, we have mutiple products which create installation packages that are kept in the same directory that I will call the mainBuildDir. An installation package is a directory whose name is the product name followed by the date. Ex: ProdA_2007-06-22 The contents are multiple files and folders, perhaps …

Member Avatar for KevinADC
0
117
Member Avatar for Darshanaa

hello everyone. im darshanaa ive just started my linux classes.the problem is ive got no idea abt unix and what all its abt. While i got familiar with the installation ,and required configurations.i clicked a query . why does linux - red hat enterprise linux 4.0 work properly on intel …

0
92
Member Avatar for hamarsheh

hello everybody!!! i need to get the file id group , i used afunction filegroup ( filename ) but this function dosen't produce meaningful results on windows system, so you can use a function which resolves this posix_getid( ))but unfortunately this function isn't defined on windows platforms , so ineed …

Member Avatar for w_3rabi
0
133
Member Avatar for shahnazurs

Freinds, i couldn't able to use backspace in the solaris OS! whenever i do it is printing character like ^?. So what i does is just executed command like stty erase ^? then it is working. Can we have some permanent solution for that? my shell is C shell, i …

Member Avatar for karenjones
0
128
Member Avatar for arvind

hi there... im relatively new to the world of unix and to the Dani Web community too... I am interested in the memory management techniques followed in the UNIX OS. when i read thru a document related to that i came upon a paragraph, which im not able to decipher... …

0
67
Member Avatar for pichels

Hi, I have created a convaluted and hacked script here for comparing unix dates. Can someone help me use calc or date w/ julian param or something to look back a week, a month or even a year and compare dates or add/subtract the dates somehow in a shell script? …

Member Avatar for dsmall
0
606
Member Avatar for kc0arf

Below are the thoughts from a computer professional who has spent the last 10 years supporting Mac, Windows, and Linux computers in a variety of network applications. By no means will this general tips section be exhaustive -- that is what a good book is all about. I am also …

Member Avatar for dragonlady9947
1
633
Member Avatar for eXceed69
Member Avatar for peter_budo

I recently installed Ubuntu 7.04 on my system and for last few days been learning ways around this system and get familiar with it. I have to say I'm glad that my university has 25% machines running unix systems for Computer Science students or I would be lost. Today I …

Member Avatar for peter_budo
0
111
Member Avatar for ssimkhan

I'm trying to do an assignment to implement a unix shell and run commands using java. commands include read file, copy file, remove file and find substring in a file. I have managed to create the file and try out all commands individually but I've failed to run the threads. …

Member Avatar for Ezzaral
0
221
Member Avatar for alienlinux

hi, i have:- Server Version: Apache/1.3.29 (Unix) PHP/5.1.4 mod_mp3/0.39 mod_fastcgi/2.4.2 mod_ssl/2.8.16 OpenSSL/0.9.7j the php module seems to have loaded ok yet when i point to any php content it still delivers the code and not the propper content and i don't know what to check now as i am so …

Member Avatar for alienlinux
0
150
Member Avatar for atul_saxenas

Hi I am a new bee in Unix World. I need a little help regarding my problem. I want to swap two file which i will passing as command line argument. I can swap the two files but i am unable to check whether the file name passed in the …

Member Avatar for ghostdog74
0
86
Member Avatar for jaepi

Hello there, I'm currently practicing network programming under Unix system. I have here a sample code from the tutorial. I compiled it, it has no errors. But when I execute it, it prompts me this "connect: Connection refused". What do you think is the problem. Here's my code: [code=c++] #include …

Member Avatar for jaepi
0
185
Member Avatar for pir800

Hello All, I am new to the forum and have a bit of a problem... I am trying to change the windows generated UID numbers to specific UIDs when I log in to the linux machines. I am having trouble changing the UIDs to specific numbers. I downloaded and installed …

Member Avatar for alienlinux
0
786
Member Avatar for squinx22

somebody help me in makefiles pls...... how to create a menu launcher for Unix automatically using only the makefile.. thanx in advance

Member Avatar for Salem
0
67
Member Avatar for squinx22

hi, Is it possible to run a gedit command in the terminal that will create a text file automatically and save it in my desired file extension? For example, if I run: gedit file.txt by default, it will open a null document named file.txt. But all I want is to …

Member Avatar for thekashyap
0
80
Member Avatar for samirs79

[COLOR=#000000]Hi Code gurus!!...my first post in this forums and I m new to shell scripting too!...I need a shell script to accomplish the below, any input will be greatly appreciated..[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]Below is a sample content of a text file, [B]file1.txt[/B][/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]AMPS,2324,Subscriber,Unknown,SingleDay,20070413,20070413,[/COLOR] …

Member Avatar for samirs79
0
127
Member Avatar for uninvitedm

I've been using Tomcat/local machine to produce some jsp pages for uploading files. Files are selected and added to a listbox on a form, once the form is submitted - the filenames in the list are uploaded. Firstly there is a check to see if they exist. Something to the …

Member Avatar for jwenting
0
80
Member Avatar for HereInOz

Hi All, I have a D-Link DI-704P router/parallel print server, and while all the router functions are working fine, and the print server, with my HP Laserjet 4MP attached, works fine from a Windows machine, I am having real trouble being able to print to the LaserJet from a machine …

0
104
Member Avatar for Sturm

The linux and unix threads seem pretty dead. For the sake of centralization, why not combine all linux and unix questions into one category?

Member Avatar for jbennet
0
120
Member Avatar for stupidenator

Hello, I am currently taking a class on Perl at College, but I have found a use for it at my job. The Unix box I am currently working on has Perl 5.005_2 loaded on it. Does this version of per support back referencing, (e.g. when I put () around …

Member Avatar for KevinADC
0
99
Member Avatar for stupidenator

Hello, I am writing a SAS program that retrieves data from an Oracle database and sorts it into multiple SAS datasets. I have been asked to output the datasets in a single Excel workbook with the different datasets on different sheets inside a single workbook. I am currently writing this …

0
63
Member Avatar for EnderX

I found this little list on another forum while searching for some info earlier today. It doesn't have the info I needed, but I thought at least some of the inhabitants of Daniweb might get a kick out of it. Note: I've only worked with a few of these languages …

Member Avatar for Infarction
3
245
Member Avatar for hoanginlove81

This site is useful for Unix Solaris learner. You can find many tutorials from here [URL]http://www.learning-solaris.com[/URL]

Member Avatar for nanosani
0
114
Member Avatar for ko_tish

Short guide to include RSS on your website Including RSS feeds in to your own pages is pretty simple with PHP and some open source libraries. The follwing lines show how to create HTML from RSS feeds using the popular PHP tools magpierss (fetches and parses the RSS feed) and …

Member Avatar for Dsiembab
0
90
Member Avatar for new_2_java

Hi all, I am using RandomAccessFile, to create a log file. The log file gets created fine, when I open it in UNIX (I mean the display layout). However, when I open the file in Windows, in notepad, then I see instead of '\n' a little square. So all the …

Member Avatar for ~s.o.s~
0
110
Member Avatar for KoubaK

hey, guys im new to UNIX and i need help.. I need to write a script which will tell you if you entered an even (e.g., 2, 4, 6...) or odd number (e.g., 1, 3, 5...) and then give you the summation of the number you entered. For example, if …

Member Avatar for KoubaK
0
97
Member Avatar for squinx22

I have these files in SOURCE folder: main.cpp header.hpp implement.cpp I want that when I compile these codes, the object files and the .exe files will be found on the different folder, let's say in folder EXECUTE that is outside the folder SOURCE. Like this: /home/usr/SOURCE * main.cpp * implement.cpp …

Member Avatar for Ancient Dragon
0
82
Member Avatar for Duki

Hey everyone, We have a UNIX DecAlpha here at work, and I need to change the IP on it. Could someone tell me how to do this through command line? Thanks! :mrgreen:

Member Avatar for jay.smith
0
156
Member Avatar for Dani

I'm taking an Operating Systems course in which I need to write some really in depth programs (more specifically, along the lines of a terminal based program which implements many system level unix-like commands). However, the catch is that this must be written in straight C, which I have no …

Member Avatar for Elfshadow
0
571
Member Avatar for PrabhuScript

Hi Experts I've less idea abt unix shell script. my requirement is the shell script should take a input of a file name and shud check if that file name is present in the particular folder which is hardcoded. if not then wrtie the file there or if found write …

Member Avatar for thekashyap
0
88
Member Avatar for dianabippu

I wrote a script as below #!/bin/bash echo $1 > temp cat $2 >> temp mv temp $2 # this command helps us to retain the original name of the file # now how to append the script so tht it now inserts the first argument into the middle of …

Member Avatar for thekashyap
0
115
Member Avatar for sap.hit21

Hi all, I have faced some problem ina coding. What I have to do is just to replace all "big" with "small" from the string " The world is big. there are big cities. Bigger city mean bigger population. Towns are getting smaller". My code is [code=c] #include<stdlib.h> #include<stdio.h> #include<string.h> …

Member Avatar for sap.hit21
0
93
Member Avatar for nanodano

Is there any way to read or write to a socket besides using the [inlinecode]read()[/inlinecode] and [inlinecode]write()[/inlinecode] functions. Is there any way to treat it like a stream and use the insertion/extraction operators (<< and >>)? The reason I ask is because with read I have to put an arbitrary …

Member Avatar for vijayan121
0
188
Member Avatar for Noorhiba H.M

[B][URL="http://www.onestopfaqs.com/faqs/963/"][B] How do I get a null pointer in my programs?[/B][/URL] [/B]According to the language definition, a constant 0 in a pointer context is converted into a null pointer at compile time. That is, in an initialization, assignment, or comparison when one side is a variable or expression of pointer …

0
55
Member Avatar for gn0m3

Morning Folks, I need to change permissions on a whole bunch of machines using Apple remote desktop and the "unix" function. Ive got so far but got stuck, here is what i need. The below code compiles but i need the script to use a default username and password and …

0
81
Member Avatar for Aarky

My old iMac DV died, and I replaced it with a 20-inch Intel iMac. Wonderful machine, but it doesn't have a modem. I need to send faxes, so I dusted off my Zoom K56 Flex fax modem. This device has a 25-pin RS-232 serial connector, so I bought a USB-to-Serial …

Member Avatar for paul110
0
219
Member Avatar for arunprabhakar

HAI I HAVE ERROR IN RUNNING THIS PROGRAM I HAVE COPIED THE MAIN.H AND STRING .H. PLEASE GIVE THE SOLUTION AS SOON AS POSSIBLE CODING /* $Id: main.h,v 1.69 2005/01/18 06:19:46 prahl Exp $ */ #if defined(UNIX) #define ENVSEP ':' #define PATHSEP '/' #endif #if defined(MSDOS) || defined(OS2) #define ENVSEP …

Member Avatar for Ancient Dragon
0
799
Member Avatar for sendres

I'd like to know if there's a relatively easy way to make a bootable CD for SPARC platform. Specifically, I want to wipe the hard drives on some servers. I've used the [URL="http://www.jetico.com/bcwipe3.htm"]BCWipe[/URL] program on Windows before and was pleased with it, so I thought I'd try the UNIX version. …

Member Avatar for sendres
-1
114
Member Avatar for Debadipta

1.'Java is platform-independent'- - What's that supposed to mean though the Java run-time package differs from platform to platform;almost similar to creating different compiler for every different machine for the purpose of executing a C/C++ program? 2.'a machine is big-endian'-what does the statement signify? 3.As the Unix OS is entirely …

Member Avatar for Debadipta
0
111
Member Avatar for MIGSoft

*NATIONAL COMP SCI ENQUIRER* EXCLUSIVE PHOTO: Turing machine with two heads! STARTLING EVIDENCE: LISP came from Mars? SHOCKING EXPOSE: Illegal core dumping in Lake Erie! TRUE STORY: Man inverts singular matrix and lives to tell! REVELATION: Top scientist discovers New Jersey on Karnaugh map! OS SCANDAL: Unix and Ms. Dos …

Member Avatar for omesa
0
152
Member Avatar for livingsword

i wish to use this java code in c++. [code] String bname[] = { "Unix Environment", "Programming in Perl", "Comp. Architechture", "Operating System", "Java Programming", "DIstributed OS","Database Management", "J2ME","Operating Systems", "Algorithms in C++"}; [/code] how do I initialize char array in c++ ?:-|

Member Avatar for John A
0
95
Member Avatar for Dave256000

Using the skeleton below #include <unistd.h> // read/write #include <sys/file.h> // open/close values #include <string.h> // strlen int main( int argc, char *argv[], char *env[] ) { // C++ or C code } Write a C++ application myrm that removes (deletes) files passed as command line argument. Use only the …

Member Avatar for Dave256000
0
180
Member Avatar for Dave256000

Using the skeleton below #include <unistd.h> // read/write #include <sys/file.h> // open/close values #include <string.h> // strlen int main( int argc, char *argv[], char *env[] ) { // C++ or C code } Write a C++ application myrm that removes (deletes) files passed as command line argument. Use only the …

Member Avatar for Lazaro Claiborn
0
90
Member Avatar for belhifet

I want to implement tab completion to my program, similar to a unix shell's. Like if the user types comp and hits <tab>, completion would appear (suppose there's a file named "completion" in the current directory). Someone suggested using the readline library, but it seems too difficult to use that. …

Member Avatar for WaltP
0
118
Member Avatar for avik1983

i have a simple text file as input.i have to print that file in paragraph format.whenevr it finds "\n" in the input text it should start printing in next paragraph in output file.also a fixed amount of space should be given before start writing in every paragraph. the input and …

Member Avatar for avik1983
0
225
Member Avatar for MDPGC

I have a script that I have to interpret. I'm really new to shell scripting, however I have tried to explain the lines to the best of my ability. Can you please look at the script and let me know if I am on the right track (also point out …

Member Avatar for MDPGC
0
95
Member Avatar for avik1983

i have a HTML report file..its in attachment(a part of the whole report is attached..name "input html.doc").also its source is attached in "report source code.txt" i just want to seperate the datas like in first line it should be.. NHTEST-3848498958-NHTEST-10.2-no-baloo a and so on for whole report i have done …

0
51
Member Avatar for katharnakh

Hello, I have a script to read remote file. The script goes as follows, [code=Perl] #!C:\Perl\bin\perl.exe $remote= '\\\remotehost\remotedir\remotefile.jml'; open(fp, $remote) or die ("could not open the file"); print while(<fp>); close(fp);[/code] This script runs fine on my windows machine. But the same script when I run in UNIX, after changing the …

Member Avatar for masijade
0
113
Member Avatar for sarita.t

I want to know the solution for creating a link in php page by making a directory in unix.?if somebody knows the answer kindly reply. Thank you

Member Avatar for hradek
0
97

The End.