09-15-2004
Version?
Here it is:
I guess it's SonOS and version 5.7?
SunOS milford2 5.7 Generic_106541-19 sun4u sparc SUNW,Ultra-1
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does anybody know how to print a variable passed to awk command?
awk -F"|" 'BEGIN {print $job,"\n","Question \n"} {print $1,$2$4," ",$3}' "job=$job1" file1
I am trying to pass job the variable job1.
the output is blank.
?? (3 Replies)
Discussion started by: whatisthis
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a unix script which can accept n number of parameters .
I can get the parameter count using the following command and assign it to a variable
file_count=$#
Is there a similar command through which i can assign a variable all the values that i have passed as a parameter
... (2 Replies)
Discussion started by: samit_9999
2 Replies
3. Shell Programming and Scripting
Hi,
Can you please help. I am scripting in sh and I am trying to simply copy one directory to another but for some reason my variables are not recognised?
echo "The latest version of the program is being found......."
cd $SOFTWARE/src/$progname
version=`ls $SOFTWARE/src/$progname | grep... (13 Replies)
Discussion started by: cyberfrog
13 Replies
4. Shell Programming and Scripting
I have the following code in a csh script
I want to pass the value of the variable sigmasq to the awk script so that I can divide $0 by the value of sigmasq
grep "Rms Value" $f.log \
| awk '{ sub(/*:*\.*/,x); \
print... (2 Replies)
Discussion started by: kristinu
2 Replies
5. Shell Programming and Scripting
The following subroutine prints 1 instead of the content of the Equipment variable. Can someone tell me why?
#!c:/perl/bin/perl.exe
#
use strict 'vars';
my $Equipments = "data/equips.txt";
unless (open(EQUIP_FH, "$Equipments")) {
print "errors: $Equipments\n"; # This line prints... (1 Reply)
Discussion started by: tqlam
1 Replies
6. UNIX for Advanced & Expert Users
Hi,
I am facing a challenge in fixing an issue in my installation scripts.Here is a situation:
There are 3 files which are invoked at a below given order:
Installer.ksh----->Installer.xml(Ant script)------->common.ksh
I am outputting a message from common.ksh at a terminal, after that trying to... (3 Replies)
Discussion started by: baig_1988
3 Replies
7. Shell Programming and Scripting
I am having difficulties with the fllowing script:
!/bin/sh
voicemaildir=/var/spool/asterisk/voicemail/$1/$2/INBOX/
echo `date` ':' $voicemaildir >> /var/log/voicemail-notify.log
for audiofile in `ls $voicemaildir/*.wav`; do
transcriptfile=${audiofile/wav/transcript}
... (4 Replies)
Discussion started by: ghurty
4 Replies
8. Shell Programming and Scripting
I have a script.
#!/bin/sh
cur_$1_modify_time=Hello
echo "cur_$1_modify_time"
When I run like
sh /root/script1 jj
I expect value "Hello" being assigned to variable "cur_jj_modify_time" and output being "Hello" ie echoing $cur_jj_modify_time
But the output comes as
# sh... (3 Replies)
Discussion started by: anil510
3 Replies
9. Shell Programming and Scripting
Hello,
I am writing a script which is not giving the desired result. When I check the content of the 'InputFile_009_0.sh', it shows following with missing Index in this command
sed -i "s/L1ITMBLT.root/L1ITMBLT_"".root/g" run_DttfFromCombinedPrimitives_cfg.py
of .
Any help?
... (13 Replies)
Discussion started by: emily
13 Replies
10. Shell Programming and Scripting
In the bash below the variable date displays in the echo. However when I use it in the for loop it does not. Basically, the user inputs a date then that date is converted to the desired format of (month-day-year, no leading 0). That input is used in the for loop to return every file that matches... (5 Replies)
Discussion started by: cmccabe
5 Replies
sysdef(1M) System Administration Commands sysdef(1M)
NAME
sysdef - output system definition
SYNOPSIS
/usr/sbin/sysdef [-i] [-n namelist]
/usr/sbin/sysdef [-h] [-d] [-i] [-D]
DESCRIPTION
The sysdef utility outputs the current system definition in tabular form. It lists all hardware devices, as well as pseudo devices, system
devices, loadable modules, and the values of selected kernel tunable parameters.
It generates the output by analyzing the named bootable operating system file (namelist) and extracting the configuration information from
it.
The default system namelist is /dev/kmem.
OPTIONS
-i Prints the configuration information from /dev/kmem. This is the default and only needs to be specified if the configura-
tion information from both /dev/kmem and the system file specified with the "-n namelist" option is needed.
-nnamelist Specifies a namelist other than the default (/dev/kmem). The namelist specified must be a valid bootable operating system.
-h Prints the identifier of the current host in hexadecimal. This numeric value is unique across all Sun hosts.
-d The output includes the configuration of system peripherals formatted as a device tree.
-D For each system peripheral in the device tree, display the name of the device driver used to manage the peripheral.
EXAMPLES
Example 1: Sample output format
The following example displays the format of the sysdef -d output:
example% sysdef -d
Node 'SUNW,Ultra-5_10', unit #-1
Node 'packages', unit #-1 (no driver)
Node 'terminal-emulator', unit #-1 (no driver)
Node 'deblocker', unit #-1 (no driver)
Node 'obp-tftp', unit #-1 (no driver)
Node 'disk-label', unit #-1 (no driver)
Node 'SUNW,builtin-drivers', unit #-1 (no driver)
Node 'sun-keyboard', unit #-1 (no driver)
Node 'ufs-file-system', unit #-1 (no driver)
Node 'chosen', unit #-1 (no driver)
Node 'openprom', unit #-1 (no driver)
Node 'client-services', unit #-1 (no driver)
Node 'options', unit #0
Node 'aliases', unit #-1 (no driver)
Node 'memory', unit #-1 (no driver)
Node 'virtual-memory', unit #-1 (no driver)
Node 'pci', unit #0
Node 'pci', unit #0
Node 'ebus', unit #0
Node 'auxio', unit #-1 (no driver)
Node 'power', unit #0
Node 'SUNW,pll', unit #-1 (no driver)
Node 'se', unit #0 (no driver)
Node 'su', unit #0
Node 'su', unit #1
Node 'ecpp', unit #-1 (no driver)
Node 'fdthree', unit #0
Node 'eeprom', unit #-1 (no driver)
Node 'flashprom', unit #-1 (no driver)
Node 'SUNW,CS4231', unit #0 (no driver)
Node 'network', unit #0
Node 'SUNW,m64B', unit #0
Node 'ide', unit #0
Node 'disk', unit #-1 (no driver)
Node 'cdrom', unit #-1 (no driver)
Node 'sd', unit #1
Node 'dad', unit #1
Node 'pci', unit #-1 (no driver)
Node 'SUNW,UltraSPARC-IIi', unit #-1 (no driver)
Node 'pseudo', unit #0
[output truncated]
FILES
/dev/kmem default operating system image
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
hostid(1), prtconf(1M), nlist(3ELF), attributes(5)
SunOS 5.10 4 Oct 2004 sysdef(1M)