Sponsored Content
Top Forums Shell Programming and Scripting Using variables in gnuplot within a shell script Post 302465808 by Dark2Bright on Sunday 24th of October 2010 12:03:14 PM
Old 10-24-2010
I am sorry, I deleted some parts of the script to make it simple. I want to display data in the range of [0.001..1000] for both x and y.
I want to write a function like this : f(x) = (x == 0) ? 0.001 : x , then apply for both x and y, i.e. column 1 and 4.
My problem is I can not use $1 and $4 to stand for columns, since it will be confused with the variables of shell script. Please help me.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Accessing variables of one shell script in another shell script

I have a variable $exe in a shell script file a.sh which I need to access in another shell script file b.sh. How can I do that? :rolleyes: Thanks!! (2 Replies)
Discussion started by: looza
2 Replies

2. Shell Programming and Scripting

Gnuplot shell script controlled animation

Hi, I am looking for basic shell script to feed Gnuplot with live data, to arrange basic animation. I mean one-liner one variable real function. Any idea or experiences from the past, generating Gnuplot animation on dumb terminal (ASCII only) ? Or please refer me to a nice web site. ... (7 Replies)
Discussion started by: darius2
7 Replies

3. Shell Programming and Scripting

Accessing variables of one shell script in another shell script

Hi All, I have a shell script called sample1.sh where I have 2 variables. Now I have another shell script called sample2.sh. I want the variables in sample1.sh to be available to sample2.sh. For example. In sample1.sh I am finding the sum of 2 numbers namely a and b. Now I want to access... (2 Replies)
Discussion started by: rsendhilmani
2 Replies

4. Shell Programming and Scripting

Variables in shell script

mysqldump --compact --add-drop-table -h192.168.150.80 -uroot -p somePass $combined | sed '/$combined/$table/g' | mysql $databaseThe sed part is not working from the above statement. The variables combined and table are already defined and instead of showing the actual variable, it is executing the... (4 Replies)
Discussion started by: shantanuo
4 Replies

5. HP-UX

Shell script variables

hi everyone, i'm writing shell script on hp-ux server that run by root user then (inside the script) su to database user and appl user..the reason for this script is to run some commands involve all users root and database and appl..anyway, variables when root in control is ok but when su, the... (1 Reply)
Discussion started by: neemoze
1 Replies

6. Shell Programming and Scripting

Passing gnuplot variables to shell script

Hi, I need to pass a gnuplot value to a shell script. I have a main shell script (Main.sh) that has a bunch of gnuplot commands. Main.sh calls another gnuplot script (Child.gnu). A part of the code in Child.gnu is as follows: sp '</data/src/scripts/results/plot_data.sh $col' u (A):2:3 w pm3d... (8 Replies)
Discussion started by: annazpereira
8 Replies

7. Shell Programming and Scripting

Pass shell variable to gnuplot

Hi I am plotting a series of CDFs using gnuplot using plot "data" u 1:(1./x.) smooth cumulative I am doing this over many files and I need to tune the x value to the number of lines that meets a particular condition. Is it possible to get the line count from shell using cat file | grep... (7 Replies)
Discussion started by: jamie_123
7 Replies

8. UNIX for Dummies Questions & Answers

How to write Config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

9. Shell Programming and Scripting

How to write config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

10. Shell Programming and Scripting

Shell script to create runtime variables based on the number of parameters passed in the script

Hi All, I have a script which intends to create as many variables at runtime, as the number of parameters passed to it. The script needs to save these parameter values in the variables created and print them abc.sh ---------- export Numbr_Parms=$# export a=1 while do export... (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
FAX(1)							      General Commands Manual							    FAX(1)

NAME
fax - make, send, receive, view or print a fax SYNOPSIS
fax help fax make [-l] file fax send [-l] [-v] { -m | number } filename... fax [ receive [-v] [ filename-prefix ] ] fax { print | view | rm } filename... fax { queue | status [t] | start | stop } fax answer OPTIONS
-l use low (96 line per inch) resolution -v display verbose messages for debugging -m the phone call has already been dialed manually The commands make, send, receive, view and queue may be abbreviated to their first characters (e.g. ``fax q''). Assignments of the form VARIABLE=value may appear before the command name to temporarily change the values of most fax script variables (e.g. ``fax PAGE=a4 print letter.001'') DESCRIPTION
fax provides a simple user interface to the efax(1) and efix(1) programs. It allows you to send text or Postscript files as faxes and receive, print or preview received faxes. The fax help command prints a summary of the possible commands. To send a fax, the original files need to be converted from ASCII or Postscript into a particular bit-map format (TIFF with Group 3 encod- ing). This can be done automatically by the fax send command or you can use the fax make command to do the conversion before sending the fax. The conversion will create one file per page. These files will have the name of the original file with the page number as an addi- tional suffix. For example, running fax make doc.ps on the two-page postscript file doc.ps would generate the files doc.ps.001 and doc.ps.002. When sending a fax with the fax send command you may dial the number manually and use the -m option or you may give the phone number on the command line. The names of the files to be sent are given on the command line, usually by using wildcards. For example, to send a multi- page fax consisting of the files doc.ps.001, doc.ps.002, and so on, you could use the command fax send 555-1212 doc.ps.0* (if you had already run the fax make command) or simply fax send 555-1212 doc.ps. If the number is busy the script will wait and try again. Use the fax receive command to answer the phone and receive a fax. If a file name is specified the received fax will be stored in files with the given file name plus an extension equal to the page number. If no options are given, the received fax will be stored in files having a name given by the date and time and an extension equal to the page number. For example, a fax received beginning on July 4 at 3:05:20 pm will generate files 0704150520.001, 0704150520.002, and so on. The fax print, fax view, and fax rm commands are used to print, preview or remove received fax files. As with the send command the file names are usually given using wildcards. If efax has been installed for automatic fax reception you can use the fax queue command to check for files in the incoming spool direc- tory. The fax script can also be configured to print received faxes or e-mail them as MIME attachments with type image/tiff-f. For conve- nience the fax print, view and rm commands will first check for the named files in this spool directory. The fax status command shows the status of the automatic receive process once, or every t seconds. Privileged users can use the fax stop and fax start commands to stop and restart the fax reception daemon. The fax answer command is used for unattended reception of faxes. It is normally placed in the inittab(5) or ttytab(5) file and is run automatically by init(8). The -v option displays verbose messages. Other features of the fax script are documented within the script: - a directory that lets you specify recipients by name instead of number - the fax new command to create a simple cover page and start up a text editor - the fax makefont command converts a Postscript font to a bit-mapped font for use in headers or text RESOLUTION
Faxes can be created at low (98 lines per inch) or high (196 lpi) resolution. Almost all fax machines will operate at either resolution. By default files are created at high resolution but you can use the optional -l argument to create files at low resolution. SESSION LOGS
The modem commands and responses together with status and error messages are written to file. If the fax is successfully sent or received the log file is removed. Otherwise a message is printed showing the log file name. Please send a copy of this file when reporting prob- lems with efax. FILES
The fax script will `source' the optional shell scripts /etc/efax.rc, ~/.efaxrc and/or ./.efaxrc before processing command-line arguments. These files can be used to set script variables to custom values for a particular system, user and/or directory. The following files are created in the FAXDIR spool directory when automatic fax reception is enabled (see the fax script). DEV represents the name of the fax modem device file in /dev (e.g. cua1 for /dev/cua1). DEV.n the log file created by the fax answer daemon with process id n DEV.log contains collected log files for device DEV. Log files showing a termination status of 1 (device busy) or 4 (no response from modem) are not added to this file. DEV.stop created by the fax stop command to prevent the fax daemon from starting up. AUTHOR
Fax was written by Ed Casas. Please send comments or bug reports to edc@cce.com. Please describe the type of modem used and include a copy of the log file. COPYRIGHT
Fax is copyright 1993 -- 1999 by Ed Casas. It may be used, copied and modified under the terms of the GNU Public License. DISCLAIMER
Although fax has been tested, it may have errors that will prevent it from working correctly on your system. Some of these errors may cause serious problems including loss of data and interruptions to telephone service. SEE ALSO
efax(1), efix(1), ghostscript(1). BUGS
See efax(1). 3rd Berkeley Distribution May 1996 FAX(1)
All times are GMT -4. The time now is 09:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy