Sponsored Content
Top Forums Shell Programming and Scripting Get the return value and get the output to $results Post 302912169 by Corona688 on Wednesday 6th of August 2014 11:09:42 AM
Old 08-06-2014
Quote:
Originally Posted by yanglei_fage
I want to get the eval $* 's return value
Your explanation is circular.

"What do you hope to achieve with eval $*?" "I hope to execute eval $*"


WHY do you want to execute eval $*? What chain of logic led you here? What problem led you here?

This is extremely ill-advised in nearly all circumstances. If you ever find yourself doing things like eval $* you can be fairly sure your programming took a wrong turn somewhere.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to output the results of the AT command - properly!

Hi, I am new to UNIX and I am more used to simple commands like those in VMS. One of them is the ability to get the output from a job using the /out=<file> command in VMS. I want to submit a job (a set of unix commands) using the AT command but to get the output in a file like that used in... (4 Replies)
Discussion started by: SpanishPassion
4 Replies

2. Shell Programming and Scripting

Calling C program from cron results in no output

I can call a C program from the shell and results are outputted as normal. The C program processes some files and spits out a .csv file. If I scheduled it in cron, there is no output. If their a special way to schedule C programs in cron? thanks & regards (1 Reply)
Discussion started by: hazno
1 Replies

3. UNIX for Dummies Questions & Answers

cp output /dev/null results in not a directory

Hello, I am working on a script to measure the read performance of a busybox environment. The logical choice is to use a command line like: (time cp * /dev/null) 2> /tmp/howlong.txt Ah, the rub is cp or /dev/null will only accept a single file at a time. The result in the txt file is and... (1 Reply)
Discussion started by: stevesmo
1 Replies

4. Shell Programming and Scripting

Backing out of a script if command doesn't return any results?

Hello I have a script which emails identifies the user ID of a user and sends them an email. A user can enter part of the name of the person he/wants to send the email to. Then I use the ypcat command to identify the UID of that person. The problem I'm having, is building in an error trap... (1 Reply)
Discussion started by: Glyn_Mo
1 Replies

5. UNIX for Dummies Questions & Answers

Output results of multiple commands to a file

Hi I want to output the results of multiple commands to a single file. I use simple Ping, telnet commands to check the connectivity to many servers. Can i execute all the commands and write the output to a file instead of executing them one by one? Thanks Ashok (2 Replies)
Discussion started by: ashok.k
2 Replies

6. UNIX for Advanced & Expert Users

Insert Data into db and return php results

This is a three step process: a) Upload date ->scrub\prep data, b) insert into db, c) return php results page. I have a question about the best practices for unix to process this. I have data from a flat file that I've scrubbed and cleaned with sed and awk. When it is complete I have an... (0 Replies)
Discussion started by: dba_frog
0 Replies

7. UNIX for Dummies Questions & Answers

Why do these 2 find commands return different results?

Hi, I am using the korn shell on Solaris box. Why does the following 2 commands return different results? This command returns no results (I already used this command to create a list of files which I moved to an archive directory) find ????10??_*.dat -type f -mtime +91 However this... (15 Replies)
Discussion started by: stumpy1
15 Replies

8. Shell Programming and Scripting

Output of AWK Results

In the following line The AWK statement parses through a listing for files and outputs the results using the {print} command to the screen. Is there a way to (a) send the output to a file and (b) actually perform a cp cmd to copy the listed files to another directory? ls | awk -va=$a -vb=$b... (1 Reply)
Discussion started by: rdburg
1 Replies

9. Shell Programming and Scripting

Always output 6 columns regardless of search results

If I am searching for AA then then BB in a loop, how do I make the output always contain 6 columns of comma separated data even when there may only be 4 search matches? AA11 AA12 AA13 AA14 BB11 BB12 BB13 BB14 BB15 BB16 Final output: AA11,AA12,AA13,AA14,,,... (14 Replies)
Discussion started by: jojojmac5
14 Replies

10. Shell Programming and Scripting

Redirecting the results to different output files

Hi All, I am trying a shell script and need your help on taking the results to different output files. I have tried the below code: nawk ' {CNF = (length()-10)/7 printf "%9s", substr ($0, 1, 9) for (i=0; i<=CNF; i++) T = substr ($0, 10+i*7, 7) TMP = 100 - (T + T + T + T + T + T + T + T... (24 Replies)
Discussion started by: am24
24 Replies
pfstmo_durand02(1)					      General Commands Manual						pfstmo_durand02(1)

NAME
pfstmo_durand02 - Fast bilateral filtering for the display of HDR images SYNOPSIS
pfstmo_durand02 [--sigma-s <val>] [--sigma-r <val>] [--base-contrast <val>] [--quiet] [--verbose] [--help] DESCRIPTION
This command implements a tone mapping operator as described in: F. Durand and J. Dorsey. Fast Bilateral Filtering for the Display of High-Dynamic-Range Images. In: In ACM Transactions on Graphics, 2002. According to paper, results of this TMO require gamma correction. Unless -g option is specified, this operator also employs color correction mechanism from: Radoslaw Mantiuk, Rafal Mantiuk, Anna Tomaszewska, Wolfgang Heidrich. Color Correction for Tone Mapping. In: Computer Graphics Forum (Proc. of EUROGRAPHICS'09), 28(2), 2009. http://zgk.wi.ps.pl/color_correction/ OPTIONS
--sigma-s <val>, -s <val> Sigma value for spatial kernel. Default value: 40 --sigma-r <val>, -r<val> Sigma value for range kernel. Default value: 0.4 --base-contrast <val>, -c <val> Contrast of the base layer. Default value is 5.0f. Lower value causes higher contrast compression and results in darker picture - can help if after tone mapping too many pixels remain saturated. Increasing this value will results in brighter and more 'dynamic' picture. --original, -g Use original algorithm as described in the paper with no extensions. For this operator the switch will disable color correction. --verbose Print additional information during program execution. --quiet, -q Do not display progress report. --help, -h Print list of commandline options. EXAMPLES
pfsin memorial.hdr | pfstmo_durand02 | pfsgamma -g 2.2 | pfsout memorial.png Tone map image and save it in png format. SEE ALSO
pfsgamma(1) pfsin(1) pfsout(1) pfsview(1) BUGS
Please report bugs and comments on implementation to Grzegorz Krawczyk <krawczyk@mpi-sb.mpg.de>. pfstmo_durand02(1)
All times are GMT -4. The time now is 02:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy