Sponsored Content
Top Forums Shell Programming and Scripting Need help!! Am just starting to learn UNIX Post 302288434 by chature on Tuesday 17th of February 2009 08:35:53 AM
Old 02-17-2009
Need help!! Am just starting to learn UNIX

Dear ALL!
i have just started learing UNIX.
Can anyone pls let me how to write a program using command line to give product of two numbers ?
The program should ask like enter first no and so on.

Also,i want to know a program which can display the digits entered in words.
Like if entered "1" it should give result "One".

Thank You
 

9 More Discussions You Might Find Interesting

1. Programming

What to learn in Unix

Hi I've landed an entry level job in a s/w company.I've not yet started working.But they told me it would be good if i know unix very well.I don't have any idea abt unix.and now i realise it is very vast.It would be nice if somebody can tell me what i should be learning in unix.I don't think i'll... (5 Replies)
Discussion started by: liiza
5 Replies

2. UNIX for Dummies Questions & Answers

I want to learn more about Unix

Hi, can some one advice me of a book or online tutorail for some one new to Unix. Right now I only know few commands, and I dont have a clue regarding the different names like Solaris ...etc. thanks, i think this is a great forum.:) (3 Replies)
Discussion started by: BAM
3 Replies

3. OS X (Apple)

Want to learn Unix on PB

I've got a 15" PB running Panther and I truly want to delve into the Unix base. I want to learn what is going on under my system and I want to learn how to be able to work in the Unix environment. I've had some experience with Redhat and Mandrake Linux, so I'm not afraid of the shell prompt. I'd... (2 Replies)
Discussion started by: MortonM33
2 Replies

4. UNIX for Dummies Questions & Answers

To Learn Unix..

What Os Should I Install? Thanks. (4 Replies)
Discussion started by: dhkkim
4 Replies

5. UNIX for Dummies Questions & Answers

want to learn unix

Hi, I am a new joinee.i want to know completely about unix.could you give me some links or soft copies so that i can be good at subject. thank you. (5 Replies)
Discussion started by: mohanp
5 Replies

6. UNIX for Dummies Questions & Answers

want to learn unix

Hey guys, I would like to learn unix but first i need to start to load unix OS into my computer but i dont know where to start or get the CD to load...help appreciated...thanks (2 Replies)
Discussion started by: rxsonny
2 Replies

7. UNIX for Dummies Questions & Answers

Want to learn unix

Hello everyone, I would like to learn and administrate unix operation system. For training purposes, i would to install at home an unix system on my windows machine (using vmware player or virtual box.) I would like you to advise me on which exactly operation system can i install for learning... (2 Replies)
Discussion started by: stunaz
2 Replies

8. Shell Programming and Scripting

Need help!! Am just starting to learn UNIX

Dear ALL! i have just started learing UNIX. Can anyone pls let me how to write a program using command line to give product of two numbers /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman;... (1 Reply)
Discussion started by: chature
1 Replies

9. UNIX Desktop Questions & Answers

Best way to learn Unix....

Hello- I talked to a friend the other day....he said learning Linux is a boon to my Windows Server Support career. I know linux comes from Unix so I am wondering if I should start by learning Unix. I have a MAC with OSX on it that I can use. Will this work for learning line command? My goal is... (1 Reply)
Discussion started by: digitalayon
1 Replies
logger(1)						      General Commands Manual							 logger(1)

NAME
logger - Makes entries in the system log SYNOPSIS
/usr/bin/logger [-f file] [-i] [-p[facility.]priority] [-t tag] [message...] logger [-b] [message...] STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: logger: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
[Tru64 UNIX] Logs the informational message to the binary event logger instead of the syslog() subroutine and enters information in the binary event log file. The uerf command with the -r 250 option reports the informational messages that are in the binary event log file, which is used for system maintenance and troubleshooting. The -b option cannot be used with any other options. [Tru64 UNIX] Logs all lines in file. [Tru64 UNIX] Logs the process ID (PID) of the logger process with each line. [Tru64 UNIX] Enters the message with the specified priority and, if specified, from the specified facility. [Tru64 UNIX] You can specify priority as either an alphabetic string or its integer equivalent. You can specify the following val- ues for the priority variable: [Tru64 UNIX] (0) [Tru64 UNIX] The system is unusable. (0) [Tru64 UNIX] Action must be taken imme- diately. (1) [Tru64 UNIX] Critical conditions. (2) [Tru64 UNIX] Error conditions. (3) [Tru64 UNIX] (3) [Tru64 UNIX] (4) [Tru64 UNIX] Warning conditions. (4) [Tru64 UNIX] Normal but significant condition. (5) [Tru64 UNIX] Informational. (6) [Tru64 UNIX] Debug-level messages. (7) [Tru64 UNIX] You can also specify a value for the facility variable, which indicates the source of the event. You can specify facility as either an alphabetic string or its integer equivalent. The integer values appear in parentheses. You can specify the following values for the facility variable: [Tru64 UNIX] Kernel messages. (0) [Tru64 UNIX] Random user-level messages. (8) [Tru64 UNIX] Mail system. (16) [Tru64 UNIX] System daemons. (24) [Tru64 UNIX] Security/authorization messages. (32) [Tru64 UNIX] (32) [Tru64 UNIX] Messages syslogd generates internally. (40) [Tru64 UNIX] Line printer subsystem. (48) [Tru64 UNIX] Network news subsystem. (56) [Tru64 UNIX] UUCP subsystem. (64) [Tru64 UNIX] Clock daemon. (72) [Tru64 UNIX] (128) [Tru64 UNIX] (136) [Tru64 UNIX] (144) [Tru64 UNIX] (152) [Tru64 UNIX] (160) [Tru64 UNIX] (168) [Tru64 UNIX] (176) [Tru64 UNIX] (184) [Tru64 UNIX] Precedes each entry in the log with tag. OPERANDS
You can specify the message to be used for entries on the command line or with the -f file option, which specifies that each line in file be logged as an entry. If you do not specify message or -f, logger reads standard input. DESCRIPTION
The logger command makes the specified entries in the system log file. The logger command provides a program and shell script interface to the syslog() subroutine. The file in which entries are made depends on the current system log configuration; see syslog and syslogd for more information. NOTES
The effects of the environment variable LC_MESSAGES apply only to diagnostic messages generated by logger, and not to any messages written by the use of the command. EXIT STATUS
The following exit values are returned: Successful completion. An error occurred. EXAMPLES
To log the system reboot, including the process ID of the process running logger, enter: logger -i System rebooted To log each line in the file build.events with the tag trial build preceding them, enter: logger -f build.events -t "trial build" The following commands are equiv- alent and enter events of warning priority to the log: logger -p warning logger -p 4 The following commands are equivalent and enter events from the daemon facility of warning priority: logger -p daemon.warning logger -p 24.4 To specify the debug priority with a priority name, enter: logger -p debug my message To specify the debug priority with a priority number, enter: logger -p 7 my message To specify both debug priority and the user facility, enter: logger -p user.debug my message To specify the same facility/priority pair using numeric values, enter: logger -p 8.7 my message You can also combine alphabetic and numeric specifications: logger -p user.7 my message logger -p 8.debug my message ENVIRONMENT VARIABLES
The following environment variables affect the execution of logger: Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization variables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments). Determines the locale for the format and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES. SEE ALSO
Commands: binlogd(8), syslogd(8), uerf(8) Functions: syslog(3) Standards: standards(5) logger(1)
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy