Hi,
Not really sure whether this question should go to this forum but am giving it a shot.
I have compiled a simple C program test.c.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static int a;
int test()
{
a=a+1;
return a;
}
When I run a make command, I get this:
... (2 Replies)
Hi All,
The script which i am using to SSH to remote server is working fine when i run is using ./ but when cron runs it it gives error that "ssh: not found"
please help!!! (3 Replies)
When I try to run the history command from the prompt i get the following error:
$ history
ksh: cd: 0403-011 The specified substitution is not valid for this command.
ON running history with a parameter I get the following
$ history -10
ksh: cd: 0403-008 The number of parameters... (6 Replies)
I am running nm for a file.
the command is
nm -f libC.a
but it gives below error
nm: libC.a: 0654-203 Specify an XCOFF object module.
any solution ?
Please use and tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks. (2 Replies)
I am trying to upgrade many installations of a gallery script called coppermine through the commandline.
I've copied the latest files of the script to each account.
Then, I need to run a file gallery/update.php
which requires I log in
I can create an admin user for myself for each... (2 Replies)
I am using following code to connect to oracle database from solaris shell script. which will try thrice to connect the database ...at the 4rth atempt it will exir=t.
count=0
while ; do
sqlplus -s $usrname/$password@dbSID <<-EOF | tee $logfile
WHENEVER OSERROR EXIT 9;
WHENEVER SQLERROR... (4 Replies)
Hello Gurus,
I am firing the below command :
df -g | grep -v var| awk '{ (if $4 > 90% ) print "Filesystem", $NF,"over sized";}'
But I am getting the below error:-
======
syntax error The source line is 1.
The error context is
{if ($4 > >>> 90%) <<<
awk: The... (9 Replies)
Hello All,
Good Afternoon.
I am new to this platform and I need one small help regarding running a SQL file from Bat file. Below is what I am doing,
1. I placed the below command in one Bat file.
start putty.exe -ssh user@host -pw pwd -m C:\2.txt
2. In 2.txt, I have below command.
... (3 Replies)
Hi,
Firstly, I want to say hello to all of you guys. My first post here... I have issue with CentOS and I hope that there is someone who can help or even explain what could cause this kind of situation.
I have installed CentOS 5.7 x86_64 into Hyper-V (Windows Server 2012 R2) environment. After... (0 Replies)
exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1).
0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies
LEARN ABOUT HPUX
showrev
showrev(1M)showrev(1M)NAME
showrev - show machine, software revision, and patch revision information
SYNOPSIS
/usr/bin/showrev [-a] [-p | -p -R root_path] [-w] [-c command] [-s hostname]
showrev displays revision information for the current hardware and software. With no arguments, showrev shows the system revision informa-
tion including hostname, hostid, release, kernel architecture, application architecture, hardware provider, domain, and kernel version.
If a command is supplied with the -c option, showrev shows the PATH and LD_LIBRARY_PATH and finds out all the directories within the PATH
that contain it. For each file found, its file type, revision, permissions, library information, and checksum are printed as well.
The following options are supported:
-a Print all system revision information available. Window system and patch information are added.
-c command Print the revision information about command.
-p Print only the revision information about patches.
-R root_path Define the full path name of a directory to use as the root_path. By specifying the root path, showrev retrieves the revi-
sion information about the patch from package system information files located under a directory tree starting at
root_path. The root_path can be specified when retrieving installed patch information in a client from a server, for exam-
ple, /export/root/client1.
Note - The root file system of any non-global zones must not be referenced with the -R option. Doing so might damage the
global zone's file system, might compromise the security of the global zone, and might damage the non-global zone's
file system. See zones(5).
-s hostname Perform this operation on the specified hostname. The -s operation completes correctly only when hostname is running
Solaris 2.5 or compatible versions.
-w Print only the OpenWindows revision information.
OUTPUT
Varies, based on flags passed. If no flags are passed, output similar to the following appears:
Hostname: system1
Hostid: 7233808e
Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: a.network.COM
Kernel version: SunOS 5.10 generic
The following error values are returned:
0 Successful completion.
>0 An error occurred.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWadmc |
+-----------------------------+-----------------------------+
arch(1), ldd(1), mcs(1), sum(1), patchadd(1M), attributes(5)
For the -s option to work when hostname is running a version of Solaris prior to 2.5, the Solstice AdminSuite must be installed on host-
name.
6 Apr 2005 showrev(1M)