Sponsored Content
Top Forums UNIX for Dummies Questions & Answers What is the significance of sh -s in ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh? Post 302843956 by gacanepa on Thursday 15th of August 2013 09:32:35 PM
Old 08-15-2013
From man sh:
Code:
-s stdin         Read commands from standard input (set automatically if no file arguments are present).

Also, check this link and the examples provided therein: Bourne Shell shell-session option
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Solaris

significance of "+" char in SunOS "ls -l" output

Hi, I've noticed that the permissions output from "ls -l" under SunOS differs from Linux in that after the "rwxrwxrwx" field, there is an additional "+" character that may or may not be there. What is the significance of this character? Thanks, Suan (6 Replies)
Discussion started by: sayeo
6 Replies

3. AIX

"pconsole" and "esaadmin" on AIX version 6

Anyone know what is the function of user "pconsole" and "esaadmin" on AIX version 6? (1 Reply)
Discussion started by: ebab3
1 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

how to use "cut" or "awk" or "sed" to remove a string

logs: "/home/abc/public_html/index.php" "/home/abc/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" how to use "cut" or "awk" or "sed" to get the following result: abc abc xyz xyz xyz (8 Replies)
Discussion started by: timmywong
8 Replies

6. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
yacas(1)						      General Commands Manual							  yacas(1)

NAME
yacas, yacas_client -- small and flexible general-purpose computer algebra system SYNOPSIS
yacas [options] [{filename}] DESCRIPTION
This manual page documents briefly the yacas and yacas_client commands. Yacas (Yet Another Computer Algebra System) is a small and highly flexible general-purpose computer algebra language. The syntax uses a infix-operator grammar parser. The distribution contains a small library of mathematical functions, but its real strength is in the lan- guage in which you can easily write your own symbolic manipulation algorithms. The core engine supports arbitrary precision arithmetic, and is linked with the GNU arbitrary precision math library, and is able to execute symbolic manipulations on various mathematical objects by following user-defined rules. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. OPTIONS
A summary of options is given below -c Inhibit printing of prompts "In>" and "Out>". Useful for non-interactive sessions. -f Reads standard input as one file, but executes only the first statement in it. (You may want to use a statement block to have several statements executed.) -p Does not use terminal capabilities, no fancy editing on the command line and no escape sequences printed. Useful for non-interac- tive sessions. -t Enable some extra history recall functionality in console mode: after executing a command from the history list, the next unmodi- fied command from the history list will be automatically entered on the command line. {filename} Reads and executes commands in the filename and exits. Equivalent to "Load()". -v Prints version information and exits. -d Prints the path to the Yacas library directory and exits The default operation of Yacas is to run in the interactive console mode. Yacas accepts several options that modify its operation. Options can be combined. In addition to the console mode, an experimental persistent session facility is provided through the script yacas_client. By means of this script, the user can configure third-party applications to pass commands to a constantly running "Yacas server" and get output. The "Yacas server" is automatically started by yacas_client. It may run on a remote computer; in that case the user should have a user account on the remote computer and privileges to execute yacas_client there, as well as rsh or ssh access. The purpose of yacas_client is to enable users to pass commands to Yacas within a persistent session while running another application such as a text editor. The script yacas_client reads yacas commands from the standard input and passes them to the running "Yacas server"; it then waits 2 seconds and prints whatever output yacas produced up to this time. Usage may looks like this: 8:20pm Unix>echo "x:=3" | yacas_client Starting server. [editvi] [gnuplot] True; To exit Yacas, enter Exit(); or quit or Ctrl-c. Type ?? for help. Or type ?function for help on a function. Type 'restart' to restart Yacas. To see example commands, keep typing Example(); In> x:=3 Out> 3; In> 8:21pm Unix>echo "x:=3+x" | yacas_client In> x:=3+x Out> 6; In> 8:23pm Unix>yacas_client -stop In> quit Quitting... Server stopped. 8:23pm Unix> Persistence of the session means that yacas remembered the value of "x" between invocations of yacas_client. If there is not enough time for Yacas to produce output within 2 seconds, the output will be displayed the next time you call yacas_client. The "Yacas server" is started automatically when first used and can be stopped either by quitting yacas or by an explicit option yacas_client -stop, in which case yacas_client does not read standard input. The script yacas_client reads standard input and writes to standard output, so it can be used via remote shell execution. For instance, if an account "user" on a remote computer "remote.host" is accessible through ssh, then yacas_client can be used remotely like this: echo "x:=2;" | ssh user@remote.host yacas_client On a given host computer running the "Yacas server", each user currently may have only one persistent Yacas session. SEE ALSO
/usr/share/yacas/documentation/books.html (link to URL file:/usr/share/yacas/documentation/books.html) or http://www.xs4all.nl/~apinkus/manindex.html (link to URL http://www.xs4all.nl/~apinkus/manindex.html) for more information. AUTHOR
yacas was written by Ayal Pinkus (apinkus@xs4all.nl). yacas is available at http://www.xs4all.nl/~apinkus/yacas.html (link to URL http://www.xs4all.nl/~apinkus/yacas.html) . This manual page was written by Gopal Narayanan (gopal@debian.org) for the Debian GNU/Linux system (but may be used by others). yacas(1)
All times are GMT -4. The time now is 01:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy