Command recall within ksh on Solaris 10
Is is possible to be able to use command recall keys with the Korn Shell within Solaris 10?
Thanks, Brett
Ah, you did say "arrow keys", but I just read that as any keys for navigation. emacs mode would be <ctl>-n and <ctl>-p, while vi would be <esc> j and <esc> k
I don't know how to use the actual arrow keys in ksh.
Darren
Similar Messages
-
Ksh in solaris 10 behave strange
when use ksh from ksh the soft link (directory) will return physical path instead of symbolic link path.
on solaris 10
$ ksh
$ ln -s /var/tmp testlink
$ ls -l
lrwxrwxrwx 1 user1 group1 8 Nov 30 15:05 testlink -> /var/tmp
$ cd testlink
$ pwd
/tmp/testlink
$ ksh
$ pwd
/var/tmp
$ exit
$ pwd
/tmp/testlink
while on solaris 9
$ ksh
$ ln -s /var/tmp testlink
$ ls -l
lrwxrwxrwx 1 user1 group1 8 Nov 30 15:05 testlink -> /var/tmp
$ cd testlink
$ pwd
/tmp/testlink
$ ksh
$ pwd
/tmp/testlink
$ exit
$ pwd
/tmp/testlink
is this the way it suppose to be for ksh in solaris 10?
Thanks!The apache commons-io framework contains a method to delete a directory by recursively deleting all files and subdirectories. Intermittently, we are seeing some of the files in a subdirectory remain and then when delete is called to remove the directory (from within the commons-io framework deletedir method) we get an IOException. This only occurs on an NFS mounted file system on our production system. Our dev and qa systems are also on an NFS but it is a different one and appears to be loaded differently and the behavior for dev and qa consistently works as expected.
It appears to be some kind of latency issue related to the way java deletes files on the NFS, but no conclusive evidence so far.
We have not tried this with a newer version of java since we are presently constrained to 1.4 :-( -
Executing OS command from within PL/SQL...
Hi
I would like to know if you can issue operating system command
from within a PL/SQL block on Oracle Database(not developer
2k) .Is there any built in package for the same ? Like a similar
command is available in forms i.e HOST .
Can anyone help please ?
Thank You
Cheers
Raghavendra
nullThe only documentation I have seen uses dbms_pipe which
communicates with a host 3gl program, usually C, which in turn
issues a call to the c function system(). You could also mimic
these same actions without using dbms_pipe by using a extproc
program linked to the database if you are running db version 8.0
or above. See the pl/sql procedure manual for dbms_pipe examples.
Raghavendra (guest) wrote:
: Hi
: I would like to know if you can issue operating system command
: from within a PL/SQL block on Oracle Database(not developer
: 2k) .Is there any built in package for the same ? Like a
similar
: command is available in forms i.e HOST .
: Can anyone help please ?
: Thank You
: Cheers
: Raghavendra
null -
Execute shell command from within pascal code
Hello there,
I am trying to execute a shell command from within my pascal code. I use XCode together with FreePascal. I have tried something like:
exec ('program', 'options');
adding the 'Dos' unit to the Uses clause of my program.
Thus, e.g.,
exec ('mkdir', '/A')
to create a directory with the name 'A'.
However, my attempts so far were unsuccessful. Can anyone help me on this, and perhaps provide a simple example of how to do it right?
Thank you in advance,
ShaneIn the mean time, I found the problem myself. I am just posting the solution here for anyone that is interested. My original solution was correct, in that the 'Dos' Unit must be added, and that the right command is 'exec'. There was however a problem with the correct path to the program that I wanted to invoke. In the shell, this program was accessible from anywhere. However, in the 'exec' command, the full path to the program must be given. Since I am not a Unix expert, I don't know the reason for this.
So, in summary, the solution is:
Uses Dos;
begin
exec ('full path to program', 'program options');
e.g.: exec ('/bin/sh', '/run.sh') to process the commands in the file /run.sh
end
Hope this may be of help to anyone else.
Shane
Mac OS X (10.3.9)
Mac OS X (10.3.9)
Mac OS X (10.3.9) -
System command from within PL/SQL on server ?
Hi
I know its a bit weird thought of executing an NT system command from within PL/SQL on server (UNIX).
Has anyone done something (silly me!) like it or knows any work-around to try something like it?
Thanks in advance.
Regards
PraveshCan you be more specific?
Generally to run system commands you utilize DBMS_PIPE to communicate with a listener on the platform that you're accessing. That listener picks up the pipe request and might either:
1. spawn a process to run the command
2. fork a process to run the command
3. run the command within its own application.
It sounds complex, but if review the DBMS_PIPE documentation and it's not too difficult -- presuming you know a language like C.
I believe there are other features in 8.1.5 and higher versions that enable you to run stored programs or COM objects...
Bill -
What is the trick to 'exec' UNIX commands from within IDM?
Hellos...
We need to change the permissions of a file which an IDM script writes.
Basically I call this rule to write bytes to a file. The write method works but the exec fails.. I dont see permissions set to "666".
<block trace='true'>
<defvar name='retBuff'/>
<invoke name='writeFileUtf8' class='com.waveset.util.Util'>
<ref>fileName</ref>
<ref>xmlData</ref>
</invoke>
<set name='retBuff'>
<invoke name='exec' class='com.waveset.util.Util'>
<concat>
<s>chmod 666 </s>
<ref>fileName</ref>
</concat>
</invoke>
</set>
</block>
What is the correct method (or any way which works) to run shell commands from within IDM??????Ok. There is no 'trick' just an appreciation of what is being executed, where.
This rule works. I was foolish in testing it via the BPE.
I start the BPE on my laptop which connects to a UNIX server. Silly me was trying to run a UNIX command on my laptop. oops.
Opening an xwindows session and starting the BPE on UNIX gives the expected results. Not sure when the BPE is finally killed off (we are on IDM 7.1) how does NetBeans handle this situation.
GF -
Execute a SQLPlus command in a ksh script
I have developped a SAP CPS KSH script to be executed in a job chain. This script includes a command line like : sqlplus -s <user>/<password> \@<sql_file_to_be_execute>
When I execute the script I have the error :
ERROR: ORA-01017: invalid username/password; logon denied
But when I logon the server with the user I used to execute the job in SAP CPS and execute exactly the same command line as below I have no error !
What's the matter ? (The user is declared in SAP CPS security, Identification information.
Please help. Thanks.Hello,
I post here the content of the file "Redwood.lsb" : I dont' think there are specific environement variables....
#!/bin/sh
(C) Copyright 1993-2008 Redwood Technology B.V., Houten, The Netherlands
$Id: redwood.lsb,v 1.17.2.1 2008-10-09 09:41:44 nils Exp $
Redwood Scheduler startup & shutdown script
Basic support for IRIX style chkconfig
chkconfig: 2345 19 08
description: Redwood Startup script
Basic support for the Linux Standard Base Specification 1.3
Used by insserv and other LSB compliant tools.
BEGIN INIT INFO
Provides: redwood
Required-Start: $local_fs $autofs $remote_fs $network
Required-Stop:
Default-Start: 2 3 5
Default-Stop: 0 6
Short-Description: Start & Stop Scheduler
Description: Script to start and stop the Redwood Scheduler.
END INIT INFO
User Definable parameters ###########################################
If you want to change the location where RWTAB lives you should do it here.
RWTAB=/sapcps/704/admin/rwtab.jcs
LOGFILE=
if [ -z "$LOGFILE" ]
then
if [ -d /var/log -a -w /var/log ]
then
LOGFILE="/var/log/redwood.log"
elif [ -n "$JCS_HOME" ]
then
LOGFILE="$JCS_HOME/redwood.log"
else
LOGFILE="$HOME/redwood.log"
fi
fi
exec 2>> $
Dependencies
This script assumes that the file specified above exists.
If it cannot find rwtab it will give an error message and quit.
rwtab contains the following fields:
#1 #2 #3 #4 #5 #6 #7
<partition>:<scheduler>:<jcshome>:<orahome>:<orasid>:<twotask>:<automatic>
You can set <twotask> to "LOCAL" or leave it blank when the orasid is a local database
****************************** SHELL FUNCTIONS *****************************
OUR_NAME=`basename $0`
findexec ()
FINDEXEC_PROG=$1
for d in `echo $PATH | tr : ' '`
do
test -x $d/$FINDEXEC_PROG && echo $d/$FINDEXEC_PROG && return 0
done
return 1
checkexec()
VAR=$1
eval EXE="$`echo $VAR`"
Locate posix or xpg4 binaries
Solaris: /usr/xpg4/bin
SCO: /bin/posix
if [ -x /usr/xpg4/bin/$EXE ]
then
EXE=/usr/xpg4/bin/$EXE
eval $VAR=$EXE
elif [ -x /bin/posix/$EXE ]
then
EXE=/bin/posix/$EXE
eval $VAR=$EXE
fi
[ "`dirname $EXE`" != "" -a -x "$EXE" ] && return
x=`findexec $EXE`
if [ -n "$x" ]
then
eval $VAR=$x
eval echo $EXE is \$$VAR >&2
return 0
fi
echo "$0: Cannot locate needed executable file $EXE" >&2
exit 1
addOraclePath()
Put new ORACLE_HOME in path and remove old one
case "$OLDORA_HOME" in
"") OLDORA_HOME=$PATH ;; # This makes it so that null OLDORA_HOME can't match
esac # anything in next case statement
case "$PATH" in
$OLDORA_HOME/bin) PATH=`echo $PATH | \
$L_SED "s;$OLDORA_HOME/bin;$ORACLE_HOME/bin;g"` ;;
$ORACLE_HOME/bin) ;;
*:) PATH=${PATH}$ORACLE_HOME/bin: ;;
"") PATH=$ORACLE_HOME/bin ;;
*) PATH=$PATH:$ORACLE_HOME/bin ;;
esac
addJCSPath()
Put new JCS_HOME in path and remove old one
case "$OLDJCS_HOME" in
"") OLDJCS_HOME=$PATH ;; # This makes it so that null OLDJCS_HOME can't match
esac # anything in next case statement
case "$PATH" in
$OLDJCS_HOME/bin) PATH=`echo $PATH | \
$L_SED "s;$OLDORA_HOME/bin;$JCS_HOME/bin;g"` ;;
$JCS_HOME/bin) ;;
*:) PATH=${PATH}$JCS_HOME/bin: ;;
"") PATH=$JCS_HOME/bin ;;
*) PATH=$PATH:$JCS_HOME/bin ;;
esac
addpath()
Add $1 to the path if it is not there
DIR=$1
[ ! -d $DIR ] && return
case "$PATH" in
${DIR}:*) return;;
:$) return;;
*:$:) return;;
*:) PATH=$$
return;;
esac
PATH=$PATH:$DIR
wait_for_database()
Wait 60 seconds until connect to database succeeds
t=0
while [ $t -lt 60 ]
do
if $JCS_HOME/bin/rs internal </dev/null >/tmp/$$.err 2>&1
then
$L_RM /tmp/$$.err
return
elif grep ORA /tmp/$$.err > /dev/null
then
echo "`grep ORA- /tmp/$$.err`"
$L_RM /tmp/$$.err
exit $?
elif grep "JCS-00190" "/tmp/$$.err" > /dev/null
then
echo "Creating Scheduler: $SCHEDULER_PARTITION.$SCHEDULER_NAME"
$JCS_HOME/bin/rs internal << EOD
create scheduler "$SCHEDULER_PARTITION"."$SCHEDULER_NAME" serves SYSTEM;
exit
EOD
$L_RM /tmp/$$.err
return
elif grep "JCS-" "/tmp/$$.err" > /dev/null
then
echo "`grep JCS- /tmp/$$.err`"
exit $?
fi
sleep 1
t=`expr $t + 1`
done
verify_env()
if [ ! -f "$RWTAB" ]
then
echo ""
echo "FATAL ERROR: Could not find configuration file $RWTAB!"
echo ""
exit 1
fi
addpath /bin
addpath /usr/bin
addpath /usr/local/bin
addpath /opt/bin
addpath /usr/lbin
if [ "$JCS_HOME" != "" ]
then
addJCSPath $JCS_HOME/bin
fi
if [ "$ORACLE_HOME" != "" ]
then
addOraclePath $ORACLE_HOME/bin
fi
L_AWK=awk
L_SED=sed
L_HOSTNAME=hostname
L_RM=rm
checkexec L_AWK
checkexec L_SED
checkexec L_HOSTNAME
checkexec L_RM
export PATH
scheduler_actions()
verify_env
OPERATION=$1
cat $RWTAB | while read LINE
do
case $LINE in
\#*) ;; # Commentline in rwtab
Proceed if 7th field is Y
if [ "`echo $LINE | $L_AWK -F: '{print $7}' -`" = "Y" ]
then
SCHEDULER_PARTITION=`echo $LINE | $L_AWK -F: '{print $1}' -`
if [ -z "$SCHEDULER_PARTITION" ]
then
SCHEDULER_PARTITION="SYSJCS"
fi
export SCHEDULER_PARTITION
SCHEDULER_NAME=`echo $LINE | $L_AWK -F: '{print $2}' -`
JCS_HOME=`echo $LINE | $L_AWK -F: '{print $3}' -`
export JCS_HOME
addJCSPath $JCS_HOME/bin
ORACLE_HOME=`echo $LINE | $L_AWK -F: '{print $4}' -`
export ORACLE_HOME
addOraclePath $ORACLE_HOME/bin
ORACLE_SID=`echo $LINE | $L_AWK -F: '{print $5}' -`
export ORACLE_SID
TWO_TASK=`echo $LINE | $L_AWK -F: '{print $6}' -`
if [ "$TWO_TASK" = "LOCAL" -o -z "$TWO_TASK" ]
then
unset TWO_TASK
else
export TWO_TASK
fi
if [ "$SCHEDULER_NAME" = "*" ]
then
if [ -n "$ORACLE_SID" -o -n "$TWO_TASK" ]
then
SCHEDULER_NAME=`echo \`uname -n\`_$ | tr '[a-z]' '[A-Z]'`
else
SCHEDULER_NAME=`echo \`uname -n\` | tr '[a-z]' '[A-Z]'`
fi
fi
export SCHEDULER_NAME
case $OPERATION in
"startup")
echo "Starting "$SCHEDULER_PARTITION"."$SCHEDULER_NAME" on `$L_HOSTNAME`"
wait_for_database
$JCS_HOME/bin/rs internal <<EOD
startup "$SCHEDULER_PARTITION"."$SCHEDULER_NAME"
exit
EOD
"shutdown")
echo "Stopping $SCHEDULER_PARTITION"."$SCHEDULER_NAME on `$L_HOSTNAME`"
$JCS_HOME/bin/rs internal <<EOD
shutdown "$SCHEDULER_PARTITION"."$SCHEDULER_NAME"
exit
EOD
"status")
$JCS_HOME/bin/rs internal | grep -v "JCS-00147" > /tmp/$$.tmp
if grep JCS- /tmp/$$.tmp
then
rm /tmp/$$.tmp
exit 1
fi
echo "connect internal
set heading off
set feedback off
select status from rs_schedulers
where name = '$SCHEDULER_NAME'
and partition = '$SCHEDULER_PARTITION';
exit" > /tmp/$$.sql
SCHEDULER_STATUS=`$JCS_HOME/bin/rs -s @/tmp/$$.sql | tail -1`
if [ "$SCHEDULER_STATUS" = "Connected." ]
then
echo "Scheduler \"$SCHEDULER_NAME\" does not exist in partition $SCHEDULER_PARTITION, check your $JCS_HOME/admin/rwtab.
jcs"
elif echo "$SCHEDULER_STATUS" | grep JCS- 1>/dev/null
then
echo "An error occured: $SCHEDULER_STATUS"
else
echo "Scheduler $SCHEDULER_PARTITION.$SCHEDULER_NAME has status: $SCHEDULER_STATUS"
fi
$L_RM /tmp/$$.sql
esac
OLDJCS_HOME=$JCS_HOME
OLDORA_HOME=$ORACLE_HOME
export OLDJCS_HOME
export OLDORA_HOME
fi
esac
done
**************************** CODE STARTS HERE ******************************
Some systems not only call us with "start" and "stop", but also with
"start_msg" and "stop_msg"... (notably, HP-UX)
case "$1" in
"start_msg")
echo "Starting Redwood (async)..."
exit 0;;
"stop_msg")
echo "Stopping Redwood..."
exit 0;;
"start")
echo "Starting Redwood..."
scheduler_actions "startup"
echo "For details see $LOGFILE..."
"stop")
echo "Stopping Redwood..."
scheduler_actions "shutdown"
echo "For details see $LOGFILE..."
"status")
scheduler_actions "status"
echo "$0: Usage:
$0 start
$0 stop
$0 status"
exit 1;;
esac -
Running unix commands from within a procedure
Oracle 11.1, AIX 6.1
================
A developer would like to know what the commands are to execute from within a procedure to run unix commands on the database server and capture those results back to the procedure for parsing & manipulation.
Thanks.Don't take this as the correct way to do it, but this is merely 'a' way to do it:
have a db procedure thats executes a db function
create or replace procedure csproc(p_cmd in varchar2)
as
x number;
begin
x:=csfunc(p_cmd);
dbms_output.put_line('x is: '||x);
end;
/The function calls a piece of java to execute the os command and return the return code of the os command
create or replace function csfunc( p_cmd in varchar2) return number
as language java
name 'csclass.RunThis(java.lang.String[]) return integer';
/Here is the java class to run the os command
create or replace and compile java source
named "csclass"
as
import java.io.*;
import java.lang.*;
public class csclass extends Object
public static int RunThis(String[] args)
Runtime rt = Runtime.getRuntime();
int rc = -1;
try
Process p = rt.exec(args[0]);
int bufSize = 4096;
BufferedInputStream bis =
new BufferedInputStream(p.getInputStream(), bufSize);
int len;
byte buffer[] = new byte[bufSize];
// Echo back what the program spit out
while ((len = bis.read(buffer, 0, bufSize)) != -1)
System.out.write(buffer, 0, len);
rc = p.waitFor();
catch (Exception e)
e.printStackTrace();
rc = -1;
finally
return rc;
/and finally the os command - in this case its a very simple shell script
#!/usr/bin/ksh
echo "Hi" >> /app/oracle/workdir/cs.logwill have to grant privileges to my user 'CS' to run the various os commands
exec dbms_java.grant_permission('CS','java.io.FilePermission','/app/oracle/workdir/cs.ksh','read,execute');
exec dbms_java.grant_permission('CS','java.io.FilePermission','/app/oracle/workdir/cs.log','write');
exec dbms_java.grant_permission('CS','SYS:java.lang.RuntimePermission','*','readFileDescriptor');
exec dbms_java.grant_permission('CS','SYS:java.lang.RuntimePermission','*','writeFileDescriptor');and finally can run the procedure from within the db
set serveroutput on
exec dbms_java.set_output(1000000);
exec csproc('/app/oracle/workdir/cs.ksh');
x is: 0
PL/SQL procedure successfully completed.to prove it works ok the logfile shows an entry:
'Hi' -
How do I show the output of a command called within a gui script
I'm starting from scratch on a project I've been tasked with. My intention is a quick down-and-dirty way to apply an image within winPE to apply a windows image to the machine I've booted to a usb drive loaded with winPE.
Here's my start. It's rough, but, I have to start somewhere.
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
$objForm = New-Object System.Windows.Forms.Form
$objForm.Text = "DISM"
$objForm.Size = New-Object System.Drawing.Size(600,400)
$objForm.AutoSizeMode = "GrowAndShrink"
$objForm.StartPosition = "CenterScreen"
$objForm.FormBorderStyle = "Fixed3D"
$objForm.KeyPreview = $True
Function do_DISM{
$dism = "dism /apply-image /imagefile:D:\W7x86.wim /index:1 /applydir:C:\"
Invoke-Expression $dism
$DISMButton = New-Object System.Windows.Forms.Button
$DISMButton.BackColor = "ButtonFace"
$DISMButton.Location = New-Object System.Drawing.Size(12,27)
$DISMButton.Size = New-Object System.Drawing.Size(120,25)
$DISMButton.TabIndex = 1
$DISMButton.Text = “Start DISM”
$DISMButton.Add_Click({do_DISM})
$objForm.Controls.Add($DISMButton)
$objForm.Add_Shown({$objForm.Activate()})
[void] $objForm.ShowDialog()
Now, this does work, and it will in fact apply the windows image to c:\ which is what I need it to do. But, I have a few quesitons.
Am I correct to use "Invoke-Expression" in the function do_DISM to start the command? According to technet's articles, yes, but, want to make sure I'm doing this the proper way, since I'm learning that calling Invoke-Expression isn't always
the way to do things.
Also, since this will be used by others in my group, I'm going to need to show some sort of progress report on how far along DISM is getting along, otherwise, 5 minutes into DISM running, some people are going to think nothing's happening, and just power
down the computer no matter what I tell them. I know that running DISM from the command line, it will show a progress bar that is adequate for what I'm needing. Running the script above and clicking the button, it does run, but, all in the background
with no progress indication. Is there a way I can tell either in the function or when the function calls Invoke-Expression to run DISM, to open in a new command window which shows the live progress of the command running?
Again, my disclaimer: VERY new to writing bits of code, and am trying my best here, so, thanks in advance for patience with me.That's exactly what I was looking for! Thank you!
Changed code to:
$dism = "X:\Windows\System32\Cmd.exe /c start CMD /k dism /apply-image /imagefile:D:\W7x86.wim /index:1 /applydir:C:\"
And voila, new window opened with the live output of dism.
new... and have a glazed over look about my eyes to prove it... -
Using V9 C++ parser within shared library (Solaris)
I am trying to use the latest C++ version of XML parser within a shared library on Solaris (v8) but I am having a problem with an unresolved symbol when the shared library is loaded.
../bin/Release/xxsd: fatal: relocation error: file /space/xxs/bin/Release/libxxtOracle.so: symbol __0fJXMLParserHxmlinitPUcPFPvPCUcUi_vPvP6IxmlsaxcbTDTB: referenced symbol not found
Compiler is Forte V6.
We currently successfully use the previous version of the parser on Solaris (oraxml8) with same build settings within our application.
I am able to build and run the sample demo successfully.
Any suggestions as to what the problem is and how to get round it?.
MikeAll works fine!...
$ mkdir /tmp/xxx
$ cat > dllfile.c
$ cat > dlluser.c
$ gcc -fPIC -c dllfile.c
$ gcc -shared -W1,-soname,libdllfile.so.1 -o libdllfile.so dllfile.o
$ gcc -o prog dlluser.c -ldl
$ ls -l
total 56
-rw-r--r-- 1 xxxxxx users 80 Апр 8 17:04 dllfile.c
-rw-r--r-- 1 xxxxxx users 908 Апр 8 17:15 dllfile.o
-rw-r--r-- 1 xxxxxx users 368 Апр 8 17:03 dlluser.c
-rwxr-xr-x 1 xxxxxx users 5260 Апр 8 17:15 libdllfile.so
-rwxr-xr-x 1 xxxxxx users 6412 Апр 8 17:16 prog
$
$ file *
dllfile.c: c program text
dllfile.o: ELF 32-bit MSB relocatable SPARC Version 1
dlluser.c: c program text
libdllfile.so: ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped
prog: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
$
$ su
Password:
# mkdir -p /root/shared_library/
# cp libdllfile.so /root/shared_library/
# exit
$ ./prog
With the changes
library loaded
Inside function
$ -
How to replace oracle OCR disks commands are notworking in cun solaris
Hi
in our datacentre we are configuring new storage
in ORACLE 10g rac system with sun solaris system
if i type the commands at root
# ./ocrconfig - replace ocr /dev/did/rdsk/d10s6
it is giving the optinns list
if i type
#./crsctl add css votedisk /dev/did/rdsk/d23s6
giving error:Unknown parameter: add
ho to solve this problemHello,
By default, the Oracle Inventory directory is not installed under the Oracle Base directory.
This is because all Oracle software installations share a common Oracle Inventory,
...The Oracle Inventory should be shared by all Oracle installations on the Server. So its location is unique.
However, you may have several Oracle Base directories.
Oracle Base is the root directory of the Oracle installation and may change from one major release to another one. However, the same Oracle Base may be used for several installations:
http://download.oracle.com/docs/cd/E11882_01/install.112/e17163/glossary.htm#g998168
Also, by default OUI suggest you the Oracle Base directory. In general you have something like "/u01/app/oracle". But you are free to set the Oracle Base directory you prefer.
Hope this help.
Best regards,
Jean-Valentin -
Shudown command is not working in Solaris 10
I have two Sun Fire V890 server with Solaris 10 Operating System. In both the servers shutdown command is not working. if i am giving shutdown -y -g0 command means server is not responding, at the same time its proceeding init commands.. if i am giving init5 means, server is getting powered off. please give a solution. Thanks in Advance,
Note: This thread was originally posted in the [Servers - General Discussion|http://forums.sun.com/forum.jspa?forumID=830] forum, but moved to this forum for closer topic alignment.
-
Variant of expect command having similar functionality in Solaris OS??
Hi All,
I am using one shell script in Linux with expect 5.38 command utility, this script contain ssh and sftp. Now same shell script I need to use in Solaris (SunOS eupr0016 5.9 Generic_118558-05 sun4u sparc SUNW,Sun-Fire-V440) but issue is that the Solaris OS doesnt have expect utility.
Please let me know, is there any other variant of expect command/utility having similar functionality to use on Solaris OS.
Thanks
Jiten MistryJitenMistry wrote:
But we have Solaris 5.9 OS installed5.9 and 9 are the same version of solaris (actually I think it is SunOS 5.9 and Solaris 9, but whatever). So my advice is to install the package SFWexpct that should be on the companion CD. -
Command to be executed in solaris machine to know the existing heap size
Hi,
I want to know the command to get the existing heap size of JVM. Java version is 1.5 and runs in solaris machine.
Thanks
Regards,
NandaHi,
one way to do this would be to run "jstat -gc <pid>" where <pid> is the PID of your JVM. jstat is part of the JDK >= 1.5, located in the bin directory. This will give you several columns with the current sizes of all generations of the JVM. The last character "U" always indicates the current usage, "C" the capacity. The current "heap capacity" (which can be adjusted with -Xms and -Xmx) is the sum of S0C, S1C, EC and OC.
Nick. -
Command specific to AIX and Solaris
Hi,
I have worked on HP-UX.There we used to use VGDISPLAY for displaying the space available.But how about in Solaris and AIX.How do we check and the commands which are different from that of HPUX.Hi,
We use vxprint for VG display in case of Solaris.
For your refrence please follow thw below link , you will get a quick command sheet for AIX & Solaris.
[AIX & Solaris|http://www.redbooks.ibm.com/redpapers/pdfs/redp0104.pdf]
Maybe you are looking for
-
Collapsible panels to show/hide tr .. /tr ?
Is it possible to have 2 table rows per data record where one cell in the first tr is the tab and the 2nd tr is the content? like this +-----+-------+-------+-----+ | tab | xxxx | yyyy | zzz | +-----+-------+-------+-----+ |lorem ipsum ceterum | |cen
-
Microsoft products "cannot be opened because of problem"?
As per instructions from microsoft support i checked if there were duplicates for word/excel/powerpoint or if they were in the wrong place and they weren't. All of the microsoft applications aren't working. I really need them for school. Help! This i
-
HDMI switch doesn't allow detection of monitor unless already powered.
Is there a way to trick the MBP into thinking the monitor is detected, so that it outputs (which would power the switch)?
-
[SOLVED] Slow desktop animation Gnome 3
This only happens with my nvidia gtx 460 with nvidia drivers. My laptop with open source intel works fine. The problem is that when I go to the activities with my notification area (bottom right) populated then the frames per second is horribly slow.
-
Okay...I've literally spent 4 hours learning java, but am getting along nicely. However, (and I'm sure this is a stupid question) I just cannot get my head around how you intergrate the Asprise OCR SDK into my app. I have followed the instructions as