I am not getting this assignment about finding the IP address of the machine. I need help understanding the logic of this code. Our college lab uses proxy server; will this code work on a computer without proxy?
#include <stdio.h> /* stderr, stdout */
#include <netdb.h> /* hostent struct, gethostbyname() *...
Hi,
I have an application (APP1) which can only be executed by a user with root privileges but not by root.
Hence I have created another user root1 :
adduser -u 0 -o -g 0 -G 0,1,2,3,4,6,10 -M root1
And then when I am trying to assign a password to this user I get an authentication failure.
[root]# passwd root1
Changing password for ...
I have a script in cron.daily that runs at a certain time every morning. I need to change the time that it is run.
How do I change the time cron.daily runs the scripts?
...
I am porting some C++ code from Unix to Linux (Red Hat).
I have run into the following pattern:
ostream& myfunction(ostream& os)
{
if (os.opfx())
{
os << mydata;
os.osfx();
}
return os;
}
The functions opfx and osfx are not available under Red Hat 4.5. I saw a suggestion here to use the ostream::sentry functionality:...
Hi,
I wrote init.d script that suppose to run java CLI proccess.
The problem is that when i stop it, i get [failed] and the proccess is still running.
thanks
#!/usr/bin/env bash
#
# chkconfig: 345 97 03
#
# processname: quotes-srv
#
#
# source function library
. /etc/rc.d/init.d/functions
NAME=quotes-srv
start() {
echo -n ...
I have a software suite of ~150 custom RPMs, with fairly complex dependencies between them:
the tree of dependencies for each package is usually about five levels deep
there are several packages that (deliberately) conflict with one another
most packages depend on one or more Red Hat packages as well as other custom packages
My Conti...
hi
I'm using Linux redhat 3, can someone explain how is that possible that i am able to analyze
with gdb , a core dump generated in Linux redhat 5 ?
not that i complaint :) but i need to be sure this will always work... ?
EDIT: the shared libraries are the same version, so no worries about that, they are placed in a shaerd storage ...
Hello,
I used Plesk to open a new domain and under the "Web hosting setup for domain" I checked the "Shell access to server with FTP user's credentials" - "bin/bash".
I can log in to the account using SFTP (port 22) but when I try to upload files I get "Permission Denied". How is that possible if I enabled it through Plesk?
Joel
...
Hi,
i am using redhat 5.1 versions .i need the rpm that automatically download from internet
similar to centos and ubuntu. see i have an old gcc. compiler i want to download the latest
version compatible to my rhel 5.1 with this yum utility.please suggest
sunil
...
JBoss is community driven so it is completely free?
and
JBoss itself works within kernel space or user space
...
Hi,
I downloaded the jdk-6u21-linux-x64-rpm.bin from Sun and installed the Java. During execution the rpm which got extracted is jdk-6u21-linux-amd64.rpm.
I am trying to build an application which requires libjvm.so. And in the above JDK it is found in /usr/java/jdk1.6.0_21/jre/lib/amd64/server/libjvm.so
As a result , I am getting a c...
Some work I'm doing for a client requires me to build using a very old version of gcc on Red Hat Enterprise. We recently shifted from 4.x to 5.3 and I'm hitting some compile errors when I try to build simple example:
#include <iostream>
int main()
{
std::cout << "Hello World" << std::endl;
return 0;
}
I get the following:
b...
root@server [/mnt/elm332/Setup/Linux]# ./setupLinux64.sh -c
Unpacking JRE ...
Starting Installer ...
./setupLinux64.sh: line 433: /tmp/setupLinux64.sh.28603.dir/jre/bin/java: Permission denied
root@server [/mnt/elm332/Setup/Linux]# whoami
root
Why would this be happening? Note that this is a mounted ISO file (copied in /tm...
Does anyone know if there's a version of JAI that is compatible with RH 5.2?
We tried to have some new code deployed to our prod server last night, but the deployment team ran into a snag. The new code uses the Java Image I/O Tools library (javax.imageio.ImageIO). This is the first time we've used any JAI functionality, so the deploymen...
Hi there! Does anyone know where is the .htacess file located after I install in linux red hat 5?
Thanks!
...
I'm using Cygwin, and just discovered to my dismay that the package naming scheme is derived from Red Hat. I need the development man pages, called manpages-dev and manpages-posix-dev on Debian-based distros, and can't locate the Cygwin/RH equivalents. What are they?
If they're not available, what's the canonical documentation to use in...
Hi,
How to create a autorun file in linux which is similar to autorun.inf in Windows in order to execute a shell file ie Following are the requirment
1.Autorun the installer file ./example.sh
When CD is mounted onto the system .
...
Currently its /tmp
How can I set it to /anythingelse so that all applications use that subsequently?
...
I've got a file which is like this:
3 EOE
5 APPLE
6 NOBODY
i need to parse this and output all with '3' in the first column into filename.3, '4' into filename.4, etc... from the unix prompt
...
I'm installing OpelLdap on a RHEL 5; I used instructions found at http://www.linux.com/archive/feature/113607.
All went well, until running './configure' for OpenLDAP - the following error was recorded:
checking for gethostbyaddr_r... yes
checking number of arguments of ctime_r... 2
checking number of arguments of gethostbyname_r... 6...