Sponsored Content
Full Discussion: problem
Top Forums Shell Programming and Scripting problem Post 84101 by tmarikle on Wednesday 21st of September 2005 06:14:32 PM
Old 09-21-2005
Error Whaaaat????

Smilie Smilie Smilie Let me see if I understand you correctly.

You would like help evaluating why your case statement is giving you an apparent error and you won't try a proof given to you and at least satisfy your claim that "it doesn't work in UNIX?"

Nobody here can help you solve this problem then; good luck with it.

One piece of advice my friend, don't be too quick to blame Unix and the shell scripting constructs. Narrow down the scope of your problem to something more manageable. Take one small piece, get it working and wrap another piece around it. Keep doing this until it starts breaking. Ultimately you will learn something and people won't waste their time pulling their hair trying to analyze a piece of working code over claims that it doesn't work in Unix. You should put yourself in my shoes for a minute and consider whether you could help someone solve a problem give your analysis parameters. Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SSH Problem auth problem

Hi, Just recently we seem to be getting the following error message relating to SSH when we run the UNIX script in background mode: warning: You have no controlling tty. Cannot read confirmation.^M warning: Authentication failed.^M Disconnected; key exchange or algorithm negotiation... (1 Reply)
Discussion started by: budrito
1 Replies

2. Shell Programming and Scripting

problem with dd command or maybe AFS problem

Hi, folks. Sorry for bothering, but maybe someone could help me please. The problem is the following: there is some script that copies files from local file system to AFS. The copying is performed with dd command. The script copies data into some AFS volumes. The problem appeared with one... (0 Replies)
Discussion started by: Anta
0 Replies

3. Shell Programming and Scripting

ssh script problem problem

Hi Please help me with the following problem with my script. The following block of code is not repeating in the while loop and exiting after searching for first message. input_file ========== host001-01 host001-02 2008-07-23 13:02:04,651 ConnectionFactory - Setting session state... (2 Replies)
Discussion started by: pcjandyala
2 Replies

4. Solaris

problem in finding a hardware problem

Hi I am right now facing a strange hardware problem. System get booted with the following error: Fatal Error Reset CPU 0000.0000.0000.0003 AFSR 0100.0000.0000.0000 SCE AFAR 0000.07c6.0000.1000 SC Alert: Host System has Reset It happen 4 or 5 times and get the same error every time.I... (8 Replies)
Discussion started by: girish.batra
8 Replies

5. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

6. Red Hat

Mail Problem. Maybe, it is a DNS Problem!

Hi, i've a redhat linux 9 upadated by redhat from 7 version to 9 version. A couple of days ago i was a problem with my mail, in other words i'm not able to get any email nor to send any email. I've a proxy configuration and i tried to set iptables in order to verify the port. The 110,255 and 995... (1 Reply)
Discussion started by: pintalgi
1 Replies

7. UNIX for Dummies Questions & Answers

DHCP problem and eth1 problem

At work I am trying to get this one Linux machine (let's call it ctesgm07) to behave like another Linux machine that we have (let's call it test007). test007 returns the following version info: cat /etc/debian_version: lenny/sid uname -a: Linux test007 2.6.27-7-generic #1 SMP Tue Nov 4... (0 Replies)
Discussion started by: sllinux
0 Replies

8. AIX

AIX OS problem? network problem?

Dear ALL. I installed AIX OS on customer sites. but Only one site is too slow when I connected telnet, ftp.. Ping is too fast. but telnet and FTP is not connected.. of course i check the configuration file on aix but it's normal. Do any Idea?? thanks in advance. - Jun - (3 Replies)
Discussion started by: Jeon Jun Seok
3 Replies

9. IP Networking

Problem with forwarding emails (SPF problem)

Hi, This is rather a question from a "user" than from a sys admin, but I think this forum is apropriate for the question. I have an adress with automatic email forwarding and for some senders (two hietherto), emails are bouncing. This has really created a lot of problems those two time so I... (0 Replies)
Discussion started by: carwe
0 Replies

10. UNIX for Dummies Questions & Answers

sed Or Grep Problem OR Terminal Problem?

I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore. Here is what 's happening: * I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies
RPIECE(1)						      General Commands Manual							 RPIECE(1)

NAME
rpiece - render pieces of a RADIANCE picture SYNOPSIS
rpiece [ -v ][ -x xres ][ -y yres ][ -X xdiv ][ -Y ydiv ][ -F|R syncfile ][ -T timelim ] [ $EVAR ] [ @file ] [ rpict options ] -o picture octree DESCRIPTION
Rpiece renders a RADIANCE picture a piece at a time, calling rpict(1) to do the actual work. This is useful for running multiple rpict processes on cooperating machines to render a single picture, which is a shared file specified with the -o option. The overall picture dimensions will be xres by yres (or smaller, depending on the -pa option and other view options), and the picture will be rendered in xdiv by ydiv pieces. There are two basic methods for telling rpiece which piece(s) of a picture to render. The explicit method is to write on the standard input the X and Y position of the desired piece(s), where X runs from zero to xdiv-1 and Y runs from zero to ydiv-1. (The lower left piece of a picture corresponds to (0,0) in this system.) Alternatively, the implicit specification method uses a synchronization file to deter- mine which piece is to be rendered next. Specified with the -F option, syncfile initially contains the values for xdiv and ydiv, so the -X and -Y options are unnecessary. (However, they are used if syncfile does not exist.) The first rpiece process puts a lock on syncfile and modifies its contents before starting work on the first piece of the image. It writes the X and Y position of the piece it will work on, so the next rpiece process to modify syncfile will start on the next piece. (When it finishes with its piece, it appends the index to the end of syncfile.) This procedure continues until all the pieces are done, at which point all of the rpiece processes will terminate. The -R option may be used instead of -F if some of the pieces were not properly finished by previous (killed) runs of rpiece. This option should be used by at most one rpiece process, which must be started first and with no other rpiece processes running or else it will reren- der the same pieces other processes have begun. Once the recover process is started, you may start other rpiece processes using the -F option to run simultaneously. If some processes die during execution, leaving one or more half-finished pieces in the picture even though the other processes think the work is done, you may run a single rpiece with the -R option by itself to repair the holes. The -v flag switches on verbose mode, where rpiece reports to the standard output after each piece begins and after each piece is finished. Options may be given on the command line and/or read from the environment and/or read from a file. A command argument beginning with a dollar sign ('$') is immediately replaced by the contents of the given environment variable. A command argument beginning with an at sign ('@') is immediately replaced by the contents of the given file. EXAMPLE
First rpiece process is started on the machine "goober": goober% echo 1 8 > syncfile goober% echo -F syncfile -x 1024 -y 1024 -vf view -o picture octree > args goober% rpiece @args & Second rpiece processes is started on the machine "sucker": sucker% rpiece @args & NOTES
Due to NFS file buffering, the network lock manager is employed to guarantee consistency in the output file even though non-overlapping writes are used. This would tend to slow the process down if rpiece were to wait for this I/O to complete before starting on the next piece, so rpiece forks separate processes to hang around waiting for I/O completion. The number of processes thus designated is set by the MAXFORK macro in the program (compiled in the src/util directory). If the fork call is slow on a system, it may actually be better to set MAXFORK to zero. In other cases, the network lock manager may be so slow that this value should be increased to get the best utilization. The output picture is not run-length encoded, and can be quite large. The approximate size (in kilobytes) can be computed by the simple formula: filesize = xres*yres/256 Make sure that there is enough space on the filesystem to hold the entire picture before beginning. Once the picture is finished, the ra_rgbe(1) program with the -r option may be used to convert to a run-length encoded picture for more efficient storage, although pfilt(1) or any of the other Radiance picture filters will do the same thing. The ALRM signal may be used to gracefully terminate an rpiece process after it finishes the current piece. This permits other currently running or subsequently started rpiece process(es) to continue rendering the picture without loss. The -T option will send the ALRM signal to rpiece after the specified number of (decimal) hours. This is the best way to force a time limit on the computation, since information will not be lost, though the process may continue for some time afterwards to finish its current piece. BUGS
This program may not work on some systems whose NFS lock manager is unreliable. In particular, some System V derivative UNIX systems often have problems with the network lock manager. If the output is scrambled or rpict aborts with some ambient file related problem, you should just remove the ambient file and go back to normal rendering. AUTHOR
Greg Ward SEE ALSO
getinfo(1), pfilt(1), ra_rgbe(1), rpict(1), ximage(1) RADIANCE
10/1/98 RPIECE(1)
All times are GMT -4. The time now is 03:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy