1,293 Topics
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 …
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 | …
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.?
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 …
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 …
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 …
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. …
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 …
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)
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 …
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. …
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 …
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, …
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 …
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 …
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
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 …
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. …
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 …
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 …
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 …
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 …
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 …
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: …
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> …
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. …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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. …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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.
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 …
The End.