GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
nxsh(1) Command-line interface nxsh(1)


nxsh - Simple shell containing NSF/NX interpreter

nxsh ?-c ?arg1?? ?arg2 ...?


nxsh ?-c ?arg1?? ?arg2 ...?
nxsh is a shell-like application that reads NX and Tcl commands from different sources and evaluates them.

If invoked without any arguments, nxsh runs in read-eval-print mode (REPL, interactive) similar to tclsh. In this mode, it reads commands from standard input interactively and prints command results as well as error messages to standard output. It remains active until the exit command is invoked or until it reaches end-of-file on its standard input.

If invoked with at least one positional argument arg1, nxsh runs a NX/Tcl script sourced from a file identified by arg1 using source.

Passing the -c flag makes nxsh accept commands from the command line provided by arg1. If arg1 is omitted, nxsh takes commands from standard input (e.g., in a pipe).

nxsh can be used like tclsh to make NX scripts directly invokable from the shell, by providing the following first line ("shebang") in the respective script:

	#! /usr/bin/env nxsh
A (more portable) alternative is:
	#! /bin/sh
	# the next line restarts using nxsh \
	    exec nxsh "$0" "$@"

Copyright (c) 2014-16 Stefan Sobernig <stefan.sobernig@wu.ac.at>, Gustaf Neumann <gustaf.neumann@wu.ac.at>; available under the Creative Commons Attribution 3.0 Austria license (CC BY 3.0 AT).
2.3.0 nxsh

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.