09-05-2008
SunOS Generic_127112-08 i86pc i386 i86pc
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Using Lynx, when I try to download a .rar, it confirms I want to download and its got it as an appication/rar file.
However, split archives that end in .r## (.r00, .r01 ...) are not recognized as an appication/rar file and it reads the file like a .txt or .html.
How can I fix this?
Thanks! (2 Replies)
Discussion started by: yitzle
2 Replies
2. Shell Programming and Scripting
Hello,everyone here.
I'm coding with KSH to achieve exploring the disk space and judging whether it closes to overflow.But It seems that no one way to convert a string variable to integer.
df | read A B C D E F G H I J K L
print ${L}
Can I convert L to integer type?
Thanks for... (2 Replies)
Discussion started by: joshuaduan
2 Replies
3. UNIX for Advanced & Expert Users
Hello,
I wanted to setup user friendly ksh command prompt, by typing first character of files or directories and then tab bring up whole word. No need to type whole file/directory/command names.
Example:
cat a file like university
just typing un and then tab bring up whole university wod.... (3 Replies)
Discussion started by: abdurrouf
3 Replies
4. Shell Programming and Scripting
Is it possible using just korn shell script to display a variable on the screen that is constantly changing in on place on the screen, to tell it in coordinates or something? In a loop, echo will print a new line each time, can I make it a static position? Thanks (7 Replies)
Discussion started by: raidzero
7 Replies
5. Shell Programming and Scripting
Hi,
I am using HP-UNIX.
I have a requirement as below
I have to change env twice like:
cadenv <env>
cadenv <env>
ccm start -d /dbpath
ccm tar -xvf *.tar
ccm rcv ....
mv *.tar BACKUP
but after I do the first cadenv <env> , I am unable to execute any of the later commands .
... (6 Replies)
Discussion started by: charlei
6 Replies
6. Shell Programming and Scripting
Hi,
Simple question :
How to find the value type from a variable :
Ex : var="1" => type is numeric
var="a" => type is character
Thx :D (3 Replies)
Discussion started by: madmat
3 Replies
7. Shell Programming and Scripting
I don't have my SysV bible with me currently and I can't remember how to change the amount of lines visible in my shell. Currently I can only scroll back to see the last 100 lines of stdout.
Any help is greatly appreciated.
blessings,
Tony <>< (2 Replies)
Discussion started by: port43
2 Replies
8. Shell Programming and Scripting
Hello,
Is ther any way to run a loop which promt an echo"waiting for user to hit ENTER"
sleeps for an iterval and once user hit the ENTER key the loop exit and the script continue to the next stage?
I need this ASAP !!!
Thanks!! (9 Replies)
Discussion started by: LiorAmitai
9 Replies
9. Programming
In C++, how can I change the type with another name
For example
How can I declaring an object real which would be the same as declaring it float (5 Replies)
Discussion started by: kristinu
5 Replies
10. Shell Programming and Scripting
Hello,
I want to run a script written in ksh but my default shell is bash as root e.g in the script it has #!/bin/ksh
i have gone into /etc/passwd to change it from :/bin/bash to /bin/ksh
but still giving me an error when running scripts such as ./installer
-bash: ./installer: /bin/ksh:... (3 Replies)
Discussion started by: DOkuwa
3 Replies
arch(1) User Commands arch(1)
NAME
arch - display the architecture of the current host
SYNOPSIS
arch [-k | archname]
DESCRIPTION
The arch utility displays the application architecture of the current host system. Due to extensive historical use of this command without
any options, all SunOS 5.x SPARC based systems will return "sun4" as their application architecture. Use of this command is discouraged.
See NOTES section below.
Systems can be broadly classified by their architectures, which define what executables will run on which machines. A distinction can be
made between kernel architecture and application architecture (or, commonly, just "architecture"). Machines that run different kernels due
to underlying hardware differences may be able to run the same application programs.
OPTIONS
-k Displays the kernel architecture, such as sun4u. This defines which specific SunOS kernel will run on the machine, and has impli-
cations only for programs that depend on the kernel explicitly (for example, ps(1)).
OPERANDS
The following operand is supported:
archname Use archname to determine whether the application binaries for this application architecture can run on the current host
system. The archname must be a valid application architecture, such as sun4, i86pc, and so forth.
If application binaries for archname can run on the current host system, TRUE (0) is returned. Otherwise, FALSE (1) is
returned.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
mach(1), ps(1), uname(1), attributes(5)
NOTES
This command is provided for compatibility with previous releases and its use is discouraged. Instead, the uname command is recommended.
See uname(1) for usage information.
SunOS 5.10 21 Oct 2002 arch(1)