* No subject was specified.
@ 1999-01-28 5:00 Joseph H. Lee
0 siblings, 0 replies; 9+ messages in thread
From: Joseph H. Lee @ 1999-01-28 5:00 UTC (permalink / raw)
nick
what version of digital unix do we have on?
jl
--
Joseph H. Lee
Center for Neurobiology & Behavior
University of Pennsylvania
email: joe@bgl.psycha.upenn.edu
voice: 215.573.4693
fax: 215.573.2041
^ permalink raw reply [flat|nested] 9+ messages in thread
* No subject was specified.
@ 1999-09-21 4:00 Wallace Liu
1999-09-21 4:00 ` Pit Linnartz
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Wallace Liu @ 1999-09-21 4:00 UTC (permalink / raw)
Hi ,
I am confused by the output of printf command:
d=07
printf "%02d\n" $d
the system print 07;
d=05
printf "%02d\n" $d
the system print 05;
d=09
printf "%02d\n" $d
the system print this message to me:
printf: 09 not completely converted
00
d=08
printf "%02d\n" $d
the system print this message to me:
printf: 08 not completely converted
00
I come cross this problem on Solaris 2.6 and Compaq UNIX. Why printf command
does not complete convert 09 and 08?
Thanks
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: No subject was specified.
1999-09-21 4:00 Wallace Liu
@ 1999-09-21 4:00 ` Pit Linnartz
1999-09-21 4:00 ` Bob Harris
1999-09-22 4:00 ` Wallace Liu
2 siblings, 0 replies; 9+ messages in thread
From: Pit Linnartz @ 1999-09-21 4:00 UTC (permalink / raw)
could you tell us a bit more about the environment.
being used (ex awk, OS version etc)
at first look I would guess it's interpreted
as octal values, so 08 etc is hard to reach
Pit
Wallace Liu wrote in message <37E705E1.D1303F3A@cwo.com.au>...
> Hi ,
>
>I am confused by the output of printf command:
>
>d=07
>printf "%02d\n" $d
>the system print 07;
>
>d=05
>printf "%02d\n" $d
>the system print 05;
>
>
>
>d=09
>printf "%02d\n" $d
>the system print this message to me:
>printf: 09 not completely converted
>00
>
>
>d=08
>printf "%02d\n" $d
>the system print this message to me:
>printf: 08 not completely converted
>00
>
>I come cross this problem on Solaris 2.6 and Compaq UNIX. Why printf
command
>does not complete convert 09 and 08?
>
>Thanks
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No subject was specified.
1999-09-21 4:00 Wallace Liu
1999-09-21 4:00 ` Pit Linnartz
@ 1999-09-21 4:00 ` Bob Harris
1999-09-22 4:00 ` Wallace Liu
2 siblings, 0 replies; 9+ messages in thread
From: Bob Harris @ 1999-09-21 4:00 UTC (permalink / raw)
To: wallace.liu
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <37E705E1.D1303F3A@cwo.com.au>, Wallace Liu
<wallace.liu@cwo.com.au> wrote:
>I am confused by the output of printf command:
>
>d=07
>printf "%02d\n" $d
>the system print 07;
>
>d=05
>printf "%02d\n" $d
>the system print 05;
>
>d=09
>printf "%02d\n" $d
>the system print this message to me:
>printf: 09 not completely converted
>00
>
>d=08
>printf "%02d\n" $d
>the system print this message to me:
>printf: 08 not completely converted
>00
>
>I come cross this problem on Solaris 2.6 and Compaq UNIX. Why printf command
>does not complete convert 09 and 08?
I am making several assumptions
1) this is peril
2) that the d=08 and d=09 are initially treated as strings.
3) that the printf is converting the strings to numbers.
It is my guess that when the strings are being converted, the standard
convention, as established in the early days of UNIX and 'C' (maybe
even earlier), was that any number beginning with a leading zero was
treated as an octal number, and octal numbers only use digits 0-7. The
digits 8 and 9 are illegal in octal numbers.
If you specify the values as:
d=8
d=9
then I think the printf statement would work correctly.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: No subject was specified.
1999-09-21 4:00 Wallace Liu
1999-09-21 4:00 ` Pit Linnartz
1999-09-21 4:00 ` Bob Harris
@ 1999-09-22 4:00 ` Wallace Liu
1999-09-26 4:00 ` Claus Divossen
2 siblings, 1 reply; 9+ messages in thread
From: Wallace Liu @ 1999-09-22 4:00 UTC (permalink / raw)
Hi all
I am sorry that I did not specify the environment completely: this is a UNIX
shell environment.
Wallace Liu wrote:
> Hi ,
>
> I am confused by the output of printf command:
>
> d=07
> printf "%02d\n" $d
> the system print 07;
>
> d=05
> printf "%02d\n" $d
> the system print 05;
>
> d=09
> printf "%02d\n" $d
> the system print this message to me:
> printf: 09 not completely converted
> 00
>
> d=08
> printf "%02d\n" $d
> the system print this message to me:
> printf: 08 not completely converted
> 00
>
> I come cross this problem on Solaris 2.6 and Compaq UNIX. Why printf command
> does not complete convert 09 and 08?
>
> Thanks
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No subject was specified.
1999-09-22 4:00 ` Wallace Liu
@ 1999-09-26 4:00 ` Claus Divossen
0 siblings, 0 replies; 9+ messages in thread
From: Claus Divossen @ 1999-09-26 4:00 UTC (permalink / raw)
Wallace Liu wrote:
> > d=08
> > printf "%02d\n" $d
> > the system print this message to me:
> > printf: 08 not completely converted
> > 00
> >
> > I come cross this problem on Solaris 2.6 and Compaq UNIX. Why printf command
> > does not complete convert 09 and 08?
> >
Assignments with leading zeros are interpreted as octal values. 09 and
08 are no
valid representations of octal numbers and hence can not be reformated
as numbers.
- Claus.
^ permalink raw reply [flat|nested] 9+ messages in thread
* No subject was specified.
@ 1999-09-07 4:00 Wallace Liu
1999-09-07 4:00 ` Stuart R. Fuller
0 siblings, 1 reply; 9+ messages in thread
From: Wallace Liu @ 1999-09-07 4:00 UTC (permalink / raw)
Hi All ;
I have a AlphaStation 200 4/100 which installed with Digital UNIX 4.0D. I
have problem with creating ADVFS domain on disks. The error message and the
ADVFS utilities version information is below,please help me solve it.
Thanks
Please reply me to wallace.liu@cwo.com.au
======================================================
mkfdmn /dev/rz3c warehouse
mkfdmn: domain init error E_ADVFS_NOT_INSTALLED (-1108)
mkfdmn: can't create new domain 'warehouse'
***********************************************************
AFAADVANCED425 installed Advanced File System Advanced Utilities,
v4.0d, r425(General Applications)
AFAADVDAEMON425 installed Advanced File System Daemon, v4.0d,
r425(General Applications)
AFAADVGUI425 installed Advanced File System Graphical User Interface,
v4.0d, r425(General Applications)
AFAADVMAN425 installed Advanced File System Advanced Utilities
Reference Pages, v4.0d, r425(General Applications)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: No subject was specified.
1999-09-07 4:00 Wallace Liu
@ 1999-09-07 4:00 ` Stuart R. Fuller
0 siblings, 0 replies; 9+ messages in thread
From: Stuart R. Fuller @ 1999-09-07 4:00 UTC (permalink / raw)
Wallace Liu (wallace.liu@yes.optus.com.au) wrote:
: Hi All ;
:
: I have a AlphaStation 200 4/100 which installed with Digital UNIX 4.0D. I
: have problem with creating ADVFS domain on disks. The error message and the
: ADVFS utilities version information is below,please help me solve it.
:
: Thanks
: Please reply me to wallace.liu@cwo.com.au
: ======================================================
:
: mkfdmn /dev/rz3c warehouse
: mkfdmn: domain init error E_ADVFS_NOT_INSTALLED (-1108)
: mkfdmn: can't create new domain 'warehouse'
:
: ***********************************************************
: AFAADVANCED425 installed Advanced File System Advanced Utilities,
: v4.0d, r425(General Applications)
: AFAADVDAEMON425 installed Advanced File System Daemon, v4.0d,
: r425(General Applications)
: AFAADVGUI425 installed Advanced File System Graphical User Interface,
: v4.0d, r425(General Applications)
: AFAADVMAN425 installed Advanced File System Advanced Utilities
: Reference Pages, v4.0d, r425(General Applications)
Is ADVFS configured into the kernel?
# cd /sys/conf
# grep MSFS YOUR-HOSTNAME-IN-CAPS
If not, add the line:
options MSFS
near the top with all the other options, then
# doconfig -c YOUR-HOSTNAME-IN-CAPS
When completed:
# mv /vmunix /vmunix.old
# mv /sys/YOUR-HOSTNAME-IN-CAPS/vmunix /
# shutdown -r now
and try again.
Stu
^ permalink raw reply [flat|nested] 9+ messages in thread
* No subject was specified.
@ 1998-11-05 5:00 Joseph H. Lee
0 siblings, 0 replies; 9+ messages in thread
From: Joseph H. Lee @ 1998-11-05 5:00 UTC (permalink / raw)
When mail command is used, the following message appears.
/: write failed, file system is full
How do I fix this?
We use Sendmail for our email and we are running osf 3.2D.
Thank you.
Joe.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1999-09-26 4:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-28 5:00 No subject was specified Joseph H. Lee
-- strict thread matches above, loose matches on Subject: below --
1999-09-21 4:00 Wallace Liu
1999-09-21 4:00 ` Pit Linnartz
1999-09-21 4:00 ` Bob Harris
1999-09-22 4:00 ` Wallace Liu
1999-09-26 4:00 ` Claus Divossen
1999-09-07 4:00 Wallace Liu
1999-09-07 4:00 ` Stuart R. Fuller
1998-11-05 5:00 Joseph H. Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox