9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Discussion started by: ginrkf
3 Replies
2. UNIX for Advanced & Expert Users
I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
Discussion started by: dkarr
2 Replies
3. Shell Programming and Scripting
Hi,
Any workaround for this issue, since i am using one script to execute the remote script for several remote server, everything works fine except some of the servers process are hangs even its completed.
---Please help me to resolve this issue----
Script details are here..
Code:... (0 Replies)
Discussion started by: l_gshankar24
0 Replies
4. Shell Programming and Scripting
Hi,
Any workaround for this issue, since i am using one script to execute the remote script for several remote server, everything works fine except some of the servers process are hangs even its completed.
---Please help me to resolve this issue----
Script details are here..
for... (2 Replies)
Discussion started by: l_gshankar24
2 Replies
5. Windows & DOS: Issues & Discussions
Hello All.
Really a newbie to Linux/Unix. Trying to get into Linux. Using XP PE currently. Installed cygwin and trying to intall cygwin-x. Everything else is setup nice but i can't seem to install these two packages (without whom xwin won't start)
1. xorg-x11-f100
2. xorg-x11-fnts
Tried the... (1 Reply)
Discussion started by: binodbdrchand
1 Replies
6. UNIX for Dummies Questions & Answers
can u tell me what is the meaning of exit(0),exit(1),exit(2)
what is diff amonng these.
Amit (1 Reply)
Discussion started by: amitpansuria
1 Replies
7. Programming
What is the difference between using exit(0) and exit(1) to exit a program? Which should I use? (9 Replies)
Discussion started by: enuenu
9 Replies
8. Solaris
I have a script that runs in verbose mode. At the end of the script it displays the final "exit" but then it hangs. What's going on?:( (5 Replies)
Discussion started by: davels
5 Replies
9. UNIX for Dummies Questions & Answers
I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747
3 Replies
FREEBSD-VERSION(1) BSD General Commands Manual FREEBSD-VERSION(1)
NAME
freebsd-version -- print the version and patch level of the installed system
SYNOPSIS
freebsd-version [-ku]
DESCRIPTION
The freebsd-version utility makes a best effort to determine the version and patch level of the installed kernel and / or userland.
The following options are available:
-k Print the version and patch level of the installed kernel. Unlike uname(1), if a new kernel has been installed but the system
has not yet rebooted, freebsd-version will print the version and patch level of the new kernel.
-u Print the version and patch level of the installed userland. These are hardcoded into freebsd-version during the build.
If both -k and -u are specified, freebsd-version will print the kernel version first, then the userland version, on separate lines. If nei-
ther is specified, it will print the userland version only.
IMPLEMENTATION NOTES
The freebsd-version utility should provide the correct answer in the vast majority of cases, including on systems kept up-to-date using
freebsd-update(8), which does not update the kernel version unless the kernel itself was affected by the latest patch.
To determine the name (and hence the location) of a custom kernel, the freebsd-version utility will attempt to parse
/boot/defaults/loader.conf and /boot/loader.conf, looking for definitions of the kernel and bootfile variables, both with a default value of
``kernel''. It may however fail to locate the correct kernel if either or both of these variables are defined in a non-standard location,
such as in /boot/loader.rc.
ENVIRONMENT
ROOT Path to the root of the filesystem in which to look for loader.conf and the kernel.
EXAMPLES
To determine the version of the currently running userland:
/bin/freebsd-version -u
To inspect a system being repaired using a live CD:
mount -rt ufs /dev/ada0p2 /mnt
env ROOT=/mnt /mnt/bin/freebsd-version -ku
SEE ALSO
uname(1), loader.conf(5), freebsd-version(8)
HISTORY
The freebsd-version command appeared in FreeBSD 10.0.
AUTHORS
The freebsd-version utility and this manual page were written by Dag-Erling Smorgrav <des@FreeBSD.org>.
BSD
October 5, 2013 BSD