bsd x 48

1,293 Topics

Member Avatar for
Member Avatar for lebron

Hi, I am very new to Perl and have no knowledge to initiate this through programming view. I am in need of help with adding a new user in UNIX using Perl programming . If you know my problem could you please assist me and share your knowledge for doing …

Member Avatar for lebron
0
107
Member Avatar for blackrobe

Hey all, I have a problem with using the grep command... Im trying to parse lines in a file and read only characters t,c,a,g lower or upper case...but i keep getting trouble in the outcome: for example axxxxtc should return atc but it doesnt... heres my code: result=`echo $line | …

Member Avatar for blackrobe
0
179
Member Avatar for axn

I have setup in .profile my login prompt as: PS1='${HOSTNAME}/${PWD}> how do I get the prompt to highlight so everytime i log in i see whatever i set my PS1 to highlighted.?

Member Avatar for axn
0
196
Member Avatar for Bythos

Hi folks, Fresh newbie here. I'm taking a c++ class and I'm just a beginner. We have started to learn pointers and I discovered some puzzling behavior while messing around with the address operator [ICODE]&[/ICODE]. Here is my code snippet: [CODE] char letter = 'a'; int integer = 1; char …

Member Avatar for trillionaire
0
255
Member Avatar for darnoc

Hi, I am having trouble inserting lines into a file via a Unix shell script, can anyone out there help me with this? Part of my file content looks like this: # default ssl qop [ssl-qop-mgmt-default] default = ALL I now need this part to read as follows: # default …

Member Avatar for darnoc
0
197
Member Avatar for knowledgelover

Hi there, I am new to use unix operating system, and I was wondering where can start learning the main commands in the unix, as I am working on server that is unix, tutorials or links that can help, when I need some functionality or a specific command I search …

Member Avatar for knowledgelover
0
167
Member Avatar for sri22

I have a web app that allows user to upload doc or docx files and converts it to HTML. I have CFMX 7 in a unix environment. Is there a custom tag that I could use for this conversion? I tried the cfx_word2html tag .. it converts .doc not docx. …

0
66
Member Avatar for serkan sendur

today i didnt code yet, there is an issue with a client, their record entry on the server application seems different in the pocket pc application, i try to understand the problem. i am running unix commands and trying to see the traces between drivers and interfaces. i hope to …

Member Avatar for William Hemsworth
0
259
Member Avatar for serkan sendur

yesterday i read that book, i was relieved. Do you also think that unix and programming on unix sucks?(i would also say c++ language but i know that Narue may prove me wrong, so i dont dare to say it)

Member Avatar for serkan sendur
-1
463
Member Avatar for rEhSi_123

I am begginer in C so please be easy on me.....:-) Anyways....my query is I have a server and a Client program written in C(attached below) for test in UNIX/LINUX in which the client sends a request to the server and the server then sends back the request to the …

Member Avatar for jephthah
0
190
Member Avatar for Debangana

Hi I am trying to ftp files from a windows server to a unix machine. When I login with the required credentials into the windows server , I want to make sure that the login directory is the correct one else I should change directory before initiating the ftp process. …

Member Avatar for ghostdog74
0
132
Member Avatar for alexgv14

I wrote this php birthday script to send emails to people whos birthday is today. I know there is a more efficient way to do this, but because i did not use the standard unix timestamp in my mysql database. I had to do it this way which was a …

Member Avatar for BzzBee
0
181
Member Avatar for metaface

Hello all, I would like to write a shell script that can scan a directory containing audio files and extract metadata or audio encoding information from the files. The goal is for the shell script to be able to process music files based on embedded data as: Format, Data Rate, …

Member Avatar for ghostdog74
0
542
Member Avatar for k2k

hi, i just "yum install jdk*.i386" and installation was complete without any error. however, i tried to #javac helloworld " and javac is not found in the $PATH. i tried to locate it and didn't find it. would anyone shed some light on where the "yum install" installed my jdk …

0
94
Member Avatar for veledrom

Hi, How do give a permission to a user to read and write all the subdirectories and sub files in a folder? Code below gives permission on project_1 folder only. I need files and directories stored in project_1 as well. Thanks [code] sudo chmod 777 userme /var/www/project_1/ sudo chown -hR …

Member Avatar for veledrom
0
185
Member Avatar for rana03

Hi I want to map a network drive on Windows platform and i am running my script on Unix machine; What are the possibilities by which i can map network drive in perl Please reply thanks in Advance, aNa

Member Avatar for rana03
0
814
Member Avatar for hkansal

Hello, Currectly I was doing an assignment where I was connecting to remote unix boxes from a windows system and some response from them. The response is something like [CODE] att1,att2,att3,att4\n val01,val02,val03,val04\n val11,val12,val13,val14\n ... ... [/CODE] This response comes to me as a long StringBuffer. Then I have to render …

Member Avatar for masijade
0
95
Member Avatar for drjay1627

Hi, I did a project a while back and as the grading TA insist on it compiling on Solaris. I have a 0 for a perfectly working project. Can someone please help me with getting a program to compile on both the free free bsd and of course annoying Solaris. …

Member Avatar for drjay1627
0
106
Member Avatar for Grub

Hi. I am writing a mac program that among other things, allows a user to create unix links to files. Now I am using the runtime.exec() method to run the ls -s command e.g. ls -s dir1/fileName dir2/NewfileName This works but becomes difficult if the path name to the file …

Member Avatar for JamesCherrill
0
171
Member Avatar for IVR_Developer

Hi from New Zealand. I have been programming in C for the last 19 years. My true love is OO which I studied at university, but I have ended up in a C job (where the most annoying bugs are possible) with UNIX shell scripting and a proprietory ASM language …

0
49
Member Avatar for kiotaya

I have been trying to learn some unix by buying a Sun Ultra 5. I reconfigured the network settings to work with my network. I did something wrong during the setup so now I just get this message [B]re-trying host configuration[/B] over and over again. Can someone tell me how …

Member Avatar for kiotaya
0
85
Member Avatar for tux4life

Hello, first of all I'm not a Unix expert at all (otherwise I wasn't asking this question), but I'm having some trouble starting my X-Server ... When I type the following:[iCODE]startx[/iCODE] or [iCODE]X[/iCODE] I get the following error message(s): [CODE] ... No core pointer Fatal server error: Failed to initialize …

Member Avatar for jbennet
0
298
Member Avatar for sanushks

Hi All, i'm executing a C program in unix, is there a way i would be able to capture abnormal termination of the C program. i observed that abnormal termintion results in the segmentation fault message being displayed. Would i be able to capture the return count in Unix to …

Member Avatar for kenji
0
230
Member Avatar for Martin Kovac

Hi, I'm new in using MySQL database and have problem with character encoding. Database was created by this query: [code=sql]CREATE DATABASE 'dbname' CHARACTER SET utf8 COLLATE utf8_general_ci;[/code] Then I've create table using this query: [code=sql]CREATE TABLE IF NOT EXISTS 'tblname' ( ... ) CHARACTER SET utf8 COLLATE utf8_general_ci;[/code] AFTER query: …

0
70
Member Avatar for siri_lito

hi can anyone help me i have the code that checks the word entered a palindrome or not it works in visual c++ but when i run the same in unix it is giving me errors can anyone tell me how to run it unix plz..... #include <iostream> #include <string> …

Member Avatar for sophia77
0
345
Member Avatar for ImSorry123

Hi All, I am not familiar with shell script and not really have much experience. How to produce a Unix shell script that will display a welcoming message to the current username. Next, the script will show the current directory path, and the extended information of the current directory contents. …

Member Avatar for masijade
0
76
Member Avatar for Silver Snail

I have created a simple HTML and Perl test to figure out how to properly get a browser to re-Post form data to a new URL. The raison d'etre for this test is to figure out the best way to re-Post the shopping cart order form data to PayPal after …

Member Avatar for Silver Snail
0
918
Member Avatar for etserrano

Hi, I'm writing a C++ single-threaded Unix daemon that listens for data arriving at a port. The whole application logic is contained into an infinity loop. The problem is that the daemon consumes a lot of CPU cycles, specifically because the loop is being continuously executed. I’ve looking around for …

Member Avatar for etserrano
0
173
Member Avatar for vishy_85

im new to c++. im trying to create a function to get the systemtime every 1 minute and store it in a variable. im able to display the time using the time.h file. the problem is i dont know how to call the function every 1 minute and assign it …

Member Avatar for siddhant3s
0
89
Member Avatar for chris5126

Hi, I am writing a script to get information on disks for Solaris 10, does anyone know of a way to print out the size of each disk on the system in MB i know how to get it in GB and could do some number manipulation however it would …

Member Avatar for chris5126
0
197
Member Avatar for ryy705

Hello, I call the imagettfbbox function like so `imagettfbbox($font_size, 0, 'monofont.ttf', $code)` but its generating the following error: 'imagettfbbox() [function.imagettfbbox]: Could not find/open font' monofont.ttf is in the same folder. And the code executes fine on the server. It just won't work on my computer. This leads me to believe …

Member Avatar for mcscreech
0
1K
Member Avatar for pace59

Help!!! My database crashed and unable to recover at this point. When trying to restore from backup, the .db file is 120568xxxx bytes long. I am getting a extract write error at 110238xxxx bytes on all tapes. Can anyone give me an idea? I do not know much about a …

0
122
Member Avatar for crewxp

I had 2 assignment that were due tonight and I completed both of them in Visual Studio, but we're required to make sure they compile in linux before submitting them. I'm getting undefined reference errors when trying to compile Assignment3. Assignment2 consisted of marble.h and marble.cpp, runs fine. Assignment3 #included …

Member Avatar for crewxp
0
161
Member Avatar for siddhant3s

I have read prior post on the forum but I came up with few specific questions about Porting Unix Socket(hereby calling it BSD socket) to Win32 Platform : First of all, I am a native Linux C/C++ Programmer. I program in Ubuntu with GCC. But, I usually also port my …

Member Avatar for siddhant3s
0
1K
Member Avatar for pharitha

Could anyone help me splitting a big file into subfiles. The file is something similar to this: 1.SYSTEM = UNIX 2.variable = value 3.>ACTIVATED 1 4.ALL: FILE1 5.ALL:FILE2 6.ALL:FILE3 7.ALL:FILE4 8.>ACTIVATED 1 9. ################* 10.>>CONDITIONS 11.################ 12.MODEL: 13.<one ExeSimpleName> : <one or more Flags> : [Options] I need to split …

Member Avatar for mitchems
0
171
Member Avatar for drjay1627

The following is a project description of a project that I have to complete: Write a shell-like program that illustrates how UNIX spawns processes. This program will provide its own prompt to the user, read the command from the input and execute the command. Let the shell allow arguments to …

Member Avatar for drjay1627
0
168
Member Avatar for amerninja2

So in C++, using Something like Unix Sockets or Winsock with C++ lets you use things like TCP/IP. But it only lets you connect to an IP within your router when its by itself. How can I have the program somehow forward the connection to like an HTTP server or …

Member Avatar for amerninja2
0
1K
Member Avatar for monkey_king

Hi, I've written a program for statistic analysis that can be found here [url]http://staff.pubhealth.ku.dk/~ande/web/software/relate.html[/url] I want to make it portable and the program works on unix with the following compilers sun, intel and gcc It also compiles on windows with mingw and the intel compiler. I've installed ms studio, but …

Member Avatar for Nick Evan
0
118
Member Avatar for shakilaf

Hi Im using tshell in my SunOS server. my .login file contains the following command: set path=/usr/bin /usr/local/bin echo "In Login- PATH="$PATH echo "In Login- path="$path The output is: In Login- PATH=/usr/bin:/usr/local/bin In Login- path=/usr/bin /usr/local/bin In tshell, is both "path" and "PATH" variables are same and delimited only with …

Member Avatar for shakilaf
0
238
Member Avatar for ZeRo 00

Guys.... I am writing a shell .I've managed to get the input from the user through a string and then I've tokenised it. Now the problem is do i need to know weather its a programme or should i continue to fork it without knowing it. As all of u …

Member Avatar for Salem
0
70
Member Avatar for number87

I did a program to read the output of the UNIX command ls -ali and count the number of directories, write files, link files etc. But there seeems to be something wrong with my code and I cant compile it. I cant seem to find out whats wrong with it. …

Member Avatar for death_oclock
0
152
Member Avatar for The Dude

ctrl u erases the current line ctrl w erases the last word you tpyod ctrl c kills a running process you just started from the command line (usually) history <number> displays the last <number> of commands typed EX: history 15 displays the last 15 commands ,with a number take that …

Member Avatar for Beastmanh
0
159
Member Avatar for number87

hi guys its my first time doing a c++ program to manipulate shell input I need to create a c++ program which reads input from this unix shell command >> ls -ali and then im supposed to count the number of dir,write files. I am not allowed to use the …

Member Avatar for Agni
0
262
Member Avatar for crsurfer

Hi, guys i need some help! i need to make a txt file with the "-A" command (in shell). that already is implemented in the client, then the client send the file thru sockets and arrive to the server, the server save the file in his directory. But the code …

Member Avatar for Belrog
0
160
Member Avatar for donjohnson24

Hi, I may not be the most ancient here - at 69 - but there probably aren't too many that are older, I guess. I was an IT Manager/Analyst/programmer/support engineer (it was a small company!) for some years before I retired in 2004, working with a unix (Aix) system and …

0
35
Member Avatar for cylow22

hi there, like almost everybody else here i've got a problem. I am working on a simplified IRC for unix, consisting of a server and a client. It's a task for university.. my problem is, my client receives strange signs from the server and when i want to parse them …

Member Avatar for cylow22
0
119
Member Avatar for Rbezona

I am a contract programmer/analyst living in Florida, and working at a large site with a complex blend of mainframe, Unix servers and PCs running Windows. I support Legacy mainframe systems, and Oracle Financials on the mid tier. I program IBM Assembler, COBOL, FORTRAN, PL/I, Unix scripts, PL/SQL, BASIC, PASCAL …

Member Avatar for jbennet
0
70
Member Avatar for serkan sendur

i tried to see the preprocessed file after it is preprocessed. i created den.cpp : [CODE]#define PROC_ERR(MSGSTR, DO_ACTION) \ { \ cerr << MSGSTR << endl; \ DO_ACTION; \ } PROC_ERR(error,action)[/CODE] i run the following command on unix command prompt to create the preprocessed file : [CODE]g++ -E -o den.i …

0
77
Member Avatar for DeepTaste

Hi, I'm planing to develop a voice logger web application, for Unix server. But to tell you the fact, i have no concept about voice logger. So, can anyone provide me some information about this and, if possible, PHP codes to build a Voice Logger. Thankx in advance.

0
80
Member Avatar for Jay8888

Hello, New member here, hope you don't mind me asking a question right from the get go. I work for a very small software company and have had to take on several responsibilities. One of them is doing builds for new releases. Windows, Unix, Linux, HP, etc., we support them …

0
29

The End.