Programming :: C Program In Unix Environment?

Jan 12, 2011

my instructor gave me a project in c programming language, the probelem i don't have a c program combiler and i don't have a unix os on my computer, and my knowledge in c program is soo weak i took it years ago, i have this code but it does't compile on Dev-C++ on Windows OS, so if you just help me out with this program:

#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

[code]....

View 5 Replies


ADVERTISEMENT

Programming :: Program Hang Stuck There Signal Handling On POSIX Message Queue UNIX C Pr

Jun 14, 2011

In a single main() function,so need signal handling. Use Posix Message Queue IPC mechanism , can ignore the priority and other linked list message,to implement the scenario:

View 1 Replies View Related

Programming :: How To Run Program Remotely Using Custom Environment?

Jun 11, 2011

I am trying to to execute multiple programs on multiple remote machines. Each program needs to be run in a custom Environment that is not known at login time. Currently I am using ssh to connect and run the program.
My issue is that I'm not sure how setup all the Environment Variables that I need on the remote machine. I was able to write all the environment variables/values (NAME=VALUE) that I needed to a file and place on a shared file server (prog.environment). I thought the best way to approach this would be to write my own utility (custom.shell) that would interpret the environment file and then execute the desired command.

View 5 Replies View Related

General :: Migrating From UNIX Environment To Redhat Rel 5?

Jan 23, 2011

The development sever of the project i am working on, currently has the source codes on a UNIX HP_UX operating system with oracle version 9i. it needs to be migrated to LINUX redhat OEL rel 5, with oracle version 10g . As i am a complete newbie to this, Could anyone please tell me what are the important things to be done as a part of migration, to make the new environment complete? i have transfered the source codes to new server, installed the required compilers and have almost completed with oracle 10g installation.

View 3 Replies View Related

General :: Unable To Use Sendmail Utility In UNIX Environment

Jun 28, 2010

In order to use the sendmail utility, I created a text file as xxx.txt with the following entries:

From:abc@abc.com
To:to@to.com
Subject:This is the subject

Then from the command line I ran the following command :

/usr/lib/sendmail -t -i << EOM
Then something like > came as a return where I wrote `cat xxx.txt`

Then again something as > appeared where I put EOM and then the command prompt retuned back. However, I failed to receive any mail.

View 2 Replies View Related

Ubuntu Networking :: No Unix/Mac Systems Visible In Network Environment?

Feb 13, 2010

I am using Ubuntu 9.10 and I've installed a Samba Server. Unfortunately I can't see any Linux/Unix/Mac systems in the networ environment. Only the Windows computers are visible.

View 1 Replies View Related

SUSE :: Compile A Unix Program In Opensuse?

Mar 14, 2009

I have used a new header file named curses.h in my program.when i try to compile my program it shows me the following error "No such path or directory".What may be the problem?A part of the program is shown below

#include<unistd.h>
#include<stdlib.h>
#include<curses.h>

[code]...

View 2 Replies View Related

Programming :: Unix Programming - Single Thread Server Can Support Exactly 2 Clients At Once

Sep 28, 2010

A simple TCP based chat server could allow users to use any TCP client (telnet, for example) to communicate with each other. For this question you should consider a single process, single thread server that can support exactly 2 clients at once, the server simply forwards whatever is sent from one client to the other (in both directions). Your server must not insist on any specific ordering of messages as soon as something is sent from one client it is immediately forwarded to the other client. As soon as either client terminates the connection the server can exit

View 4 Replies View Related

Programming :: Unix Programming - Single Process That Does Not Start Up Any Other Threads

Sep 28, 2010

i want a process that can operate as both a TCP echo server and a UDP echo server. The process can provide service to many clients at the same time, but involves a single process that does not start up any other threads.

View 3 Replies View Related

Ubuntu :: Installation Of Matlab2010a For Unix - An Error Status Was Returned By The Program 'xsetup'?

Oct 31, 2010

I met some problems with installation of Matlab2010a for Unix.My edition of ubuntu is 10.04 and I downloaded an iso file of ubuntu and extract that in this document: /home/edwardli/temp/Mathworks.Matlab.R2010a.UNIX/

when I start to install, it showed :

------------------------------------------------------------------
An error status was returned by the program 'xsetup',the X Window System version of 'install'. The following messages were written to standard error:

/home/edwardli/temp/Mathworks.Matlab.R2010a.UNIX/update/install/main.sh: 178: /home/edwardli/temp/Mathworks.Matlab.R2010a.UNIX/update/bin/glnx86/xsetup: Permission denied[code].....

View 2 Replies View Related

General :: Single C/C++ Program Using Unix Commands To Retrieve The Username, Associated Static IP Address?

Mar 11, 2010

For monitoring a network [LAN] I need a single C/C++ program using unix commands to retrieve the username, associated static IP address, what time user logged in, log out, total time system used by user. so that if a system has several users who used it @ different times of the day... then i need details of all users me,time of log in, static IP &all

View 1 Replies View Related

General :: Command Line - Unix - Program That Can Handle All Popular Compression/archiving Formats - E.g.tar, Gzip, Bzip2, Zip?

Jun 22, 2011

I sometimes get confused by the varying command line options I need to run common Unix archiving and compression software (e.g. gzip, bzip2, zip, tar).

Is there a program out there that can just Do What I Mean for common cases? For example:

View 2 Replies View Related

Ubuntu Installation :: RPMDB - Program Version 4.8 Does Not Match Environment 4.7

May 21, 2010

I have Ubuntu 9.10 running on Dell Dimension 8400, 1 gig ram, Pentium 4. No other OS installed. Last night I decided to upgrade from 9.10 to 10.0.4 through Upgrade Manager with the upgrade button. The upgrade ran over an hour and errored in the "Installing the upgrades" step with the following messages on the Terminal screen:

"rpmdb: Program version 4.8 doesn't match environment version 4.7.
error: db4 error (-30971) from dbenv->open: DB_VERSION_MISMATCH: Database environmnet version mismatch
error: cannot open Packages index using db3 - (-30971)
RPM failed to open database, cleaning it up..."

I went to bed without doing anything. This morning at 7:30am EST I checked the status of this and nothing changed to the screen it was still stuck on this error with progress bar at 4 minutes in Upgrade Manager. I can move my mouse and even open Firefox 3.6.3 to search for issues within Ubuntu environment so I am not frozen. I haven't tried anything else yet.

View 3 Replies View Related

Programming :: How To Read A String And Add It At The End In Unix

Jun 9, 2010

I want to read the line in the text file and get the string in the file and paste it in the directory column

for example i have a line like /ftp/prod/SWC1407.DOC

from this 1407 should be parsed and appended at the end of the move command

mv /ftp/prod/SWC1407.DOC /nfp/1407

View 7 Replies View Related

Programming :: How To Write Own Shell In Unix

Sep 16, 2010

I wish to create my own shell for my operating systems project in college...

My professor has asked me to make sure that my shell can execute at least 30 or 40 commands... I have around a month's time

I have seen endless source codes in the net, I'm not able to understand any of it

How do i get about doing it?

View 2 Replies View Related

Programming :: Simulate Unix Kernel In C++ ?

Jun 2, 2010

How simulate unix kernel in c++..or give me a link....

View 2 Replies View Related

Programming :: Unix Process Id In Jdk1.4.2?

Mar 2, 2009

what is the best/accurate way to get the process id in java code in order to write to the log file. To be specific: I am using avalon logkit for logging. I really cannot find a way to write the process id to each line in the log.

View 1 Replies View Related

General :: Unix Platforms And Programming Paradigms?

Oct 31, 2010

There are C, C++, Java, Perl, Python, PHP, and some other programming orand scripting languages for a Unix / Linux Distro. On a scale of 1 - 10, I rate myself on:

5 for C / C++
5 for Java
7 for PHP
2 for Perl

When I look for a Unix job I am often asked if I know C / C++, Perl or Java. Well, they mostly look for C / C++ + Unix or Perl / Python + Unix or Java + Unix combinations. That is the trend here in India. When they advertise for C / C++ + Unix they also mean Real Time System, Kernel (Modules), and Device Drivers Development. I don't know how to do those things in C / C++. But I must say that I love C / C++ and anything else no matter how attractive or easy it could be doesn't look that much challenging to me. So, which should I take now to add to my skills set and be more productive in terms of System Administration and Application Development and Support?

In C/C++ and Java, though I know them, I don't get to work in my current job. However, I often use Shell Script (Bash) and PHP and so I am finding Perl easy because the basics of Computer Programming that I learnt by learning C and C++ and Java have made it easy for me to understand any programming language.

View 2 Replies View Related

Programming :: Replace A Certain Range Of Characters In Unix?

Mar 8, 2010

I have a hard time figuring this out. I need to replace the date formats of arrival date(column 31-40) and departure date(column 42-51) and I need 2 outputs. I cannot even figure out how to start.code...

View 6 Replies View Related

Programming :: Transfer C Codes From UNIX To System?

Jun 16, 2010

I got some problems and need your help.

In school, my codes are writeen under UNIX system (Solaris10/SUN), now I need to transfer those codes to Linux (Redhat5). But after I directly copy to Linux, it shows many errors and warnings.

Does anyone know which codes I need to modify to specifily suit for UNIX? I am not familiar with those systems and hope to get your kind help.

View 5 Replies View Related

Programming :: Unix Script For Oracle Database?

Apr 7, 2011

creating the below unix script to run in oracle database .I need a script which should do the following things.

1. The script should insert row count of a table from one database(A) into table (AB) in another database(B).

2. The script should update tow count of the similar table and tablespace from database (B) in to a table AB.

3. The script should update the status column of the table AB as: 'Y' if the rowcount of the table@A and rowcount of the table@B matching. or else it should update 'N'

View 4 Replies View Related

Programming :: Connect To Remote Unix Server Using Script?

Aug 4, 2010

1)We need to do a clean up a folder in a remote unix server . What is the best option to connect to remote server? how do we use ssh ? Is there any prerequisite to use ssh?

2) We have to SCP few files to another folder in a remote unix server . I formed the below command to use in script. Is it of correct usage? scp -r $POS_HOME/posctl [login nameip address:/home/username/directory]

I have seen public key/private key generation part for SCP. How do we handle this? Does this need to be done as unix admin?

View 7 Replies View Related

Programming :: Batch File To Run Unix Commands From Windows?

Nov 22, 2010

I need to write a windows batch file to run unix commands by logging onto a telnet unix server. For example , I might want the batch file to log onto the unix sever, run the ls command, collect the output in a file and ftp it back to my windows desktop

View 8 Replies View Related

Programming :: Getting Error In Ftp From Windows To Unix Box - Permission Denied

Mar 18, 2009

I have a written a java code to ftp a file from the windows box to unix box. It keeps giving me the following error : "java.io.FileNotFoundException: PORT 204,63,56,5,16,78: 550 Permission denied." I am able to ftp manually from windows to unix.

View 5 Replies View Related

Programming :: Designing A Signal Handler With Sigwait In UNIX?

Jan 20, 2010

I'm new to Unix and every signal handler algorithm I've seen is more or less a copy of what I'm trying to do.[URL] designing a signal handler with sigwait in UNIX?

View 1 Replies View Related

Programming :: Unix Command To Remove White Spaces?

Sep 18, 2010

Im using this unix command(in a php file) to remove a certain string and then remove the whitespace left by that string. Unofrtunately in many cases, the files get completely erased. Is there a workaround?

Code

<?php
$dir = "./";
$rmcode = `find $dir -name "*.php"

[cod3e]....

View 14 Replies View Related

Programming :: Invoking UNIX Shell Commands From HTML Webpage

May 11, 2010

I have a few questions regarding HTML, UNIX and Javascript. I've been tasked with creating a fairly simple webpage that takes a few inputs. Each input must correspond to an argument in a UNIX command running on a server.On a UNIX server we have a script (.ksh) that takes 3 arguments. The result of the script is a data file which is FTP'ed to an external server. Let's forget about the FTP portion for now. I would like to know where I should begin.What I know so far:

1) I will need HTML to create the webpage. Skill level is high
2) I will need Javascript to make my webpage more interactive. Skill level is high.
3) I will need to understand the UNIX environment. Skill level is high.

View 8 Replies View Related

Programming :: Receiving Wrong Data On Winsock From Unix Socket

Jan 28, 2011

currently I've got a big problem on programming with sockets. I use the winsock2 API and want to receive data from a multicast adress running on a UNIX-PC. The connection works fine and I really receive data from this group, but as it seems not the right packages. The received data is saved in a char[]. E.g. at received_msg[12] is a float value. This one I would like to read out, convert and use it in later progress the next value is y at received_msg[16]. The same Code works on a Unix PC with unix sockets but converted to winsock I've got the described problem and I have to make this code work under windows.

Here a piece of the code (received_msg[12]='3f'):

Buffer is a struct containing the two float values x and y. If I convert the char as this under windows the value of x is a huge number. The correct value is around 192, so receveid_message[12] should be 1.92. Could it be that the Unix-PC is sending data in an other way than the winsock receive it?

View 2 Replies View Related

Programming :: Program A SH - Bash Program With Zenity To Play Radio Based On A Site?

Feb 15, 2011

I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html

My code to get url's radio country.htm is:

Code:

View 2 Replies View Related

Programming :: System() Routine Returns: Access: Unix Error (2) No Such File Or Directory

Oct 23, 2010

I am running shell command through C program using system() routine.

I am executing "opcontrol --status" an executable using the this routine and I get the following error. access: unix error (2) No such file or directory

But when I give the complete path to the executable it runs perfectly.

The executable is installed in "/usr/local/bin/" And the path variable has this path.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved