Sponsored Content
Full Discussion: output redirection
Top Forums Shell Programming and Scripting output redirection Post 302694303 by CarloM on Thursday 30th of August 2012 10:56:19 AM
Old 08-30-2012
Yeah, that's a typo/not paying attention error...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Redirection of output (for logging)

Hi, Currently I'm working on a lenghty script so I figured it would be useful to create a logfile so that output that is displayed on the users screen is also stored in the log file for later reference...... kinda like the whole point of a log file! Anyway, I was just wondering if there was an... (3 Replies)
Discussion started by: _Spare_Ribs_
3 Replies

2. UNIX for Dummies Questions & Answers

output redirection in scripts

I am trying to write a script that will remove any line in 2 given text files starting with '-'. the output should be to the second file. this is what I tried: #!/bin/csh -f cat $1 $2 | grep -v '^-' > $2 the problem is the after executing the script, file2 contains only the lines from... (7 Replies)
Discussion started by: stewie griffin
7 Replies

3. Shell Programming and Scripting

output and error redirection

hi :) if condition >&- 2>&- Can anybody explain the redirection in above command Thanks in advance (1 Reply)
Discussion started by: jpriyank
1 Replies

4. Shell Programming and Scripting

redirection and output

I'm redirecting the output of a command to a logfile, however, if the user is on a terminal I would also like the output to be displayed on the screen. tar tvf some_tarfile >Logfile if the user is on a term then have the output to the Logfile and also be displayed on the screen at the same... (2 Replies)
Discussion started by: nck
2 Replies

5. Shell Programming and Scripting

Redirection output

Hi there I have a script that runs but it outputs everything onto the screen instead of a file. I've tried using the > outputfile.txt however all it does is dump the output to the screen and creates an outputfile.txt but doesn't put anything in that file. Any help would be appreciated ... (6 Replies)
Discussion started by: kma07
6 Replies

6. Shell Programming and Scripting

Output redirection

We have an application here that does some table queries and then prints the result on screen. I do not have the code of this application (which i will just call "queryCommand"), but what it does is that you call it with some parameters and it prints some info about the query and then the... (5 Replies)
Discussion started by: jolateh
5 Replies

7. UNIX for Dummies Questions & Answers

Output redirection

Hello i am trying to write a script that will redirect the output to a certain file. Here is the code so far: #!/bin/bash ps -e | sort | more > psfile When I execute the script nothing happens since i assume the output was redirected to the file called psfile. When I try to look at the... (1 Reply)
Discussion started by: mfruiz34
1 Replies

8. Shell Programming and Scripting

Issue with output redirection

Hi, I am using AIX server. I have a korn shell script where in I am redirecting a line to a file in a while loop: while read line do outputline=$line; echo $outputline >> "./temp/exec_list_"$ETL_JOB_RUN"_temp" done < ./temp/exec_list_$ETL_JOB_RUN Sometimes, when the CPU... (2 Replies)
Discussion started by: pmonika
2 Replies

9. Shell Programming and Scripting

Redirection of ls -l output

Hi I am making a script where i want to redirect the output of ls -l to a file Example #ls -l fil1.txt > /opt/temp/a.txt ac: No such file or directory I want to capture output of this command like here output is ac: No such file or directory can anyone help (4 Replies)
Discussion started by: anish19
4 Replies

10. Shell Programming and Scripting

For loop output redirection

Hi All, i have below for loop of which i am trying to redirect output in a file: for i in `/usr/sbin/ifconfig -a | awk '/flags/ {print $1}' | grep -v lo | sed 's/://g'` do ifconfig $i dhcp status done >> /tmp/logfile but instead the output is appearing as stdout on screen rather than... (12 Replies)
Discussion started by: omkar.jadhav
12 Replies
fruled(1)						      General Commands Manual							 fruled(1)

NAME
fruled - flash/turn off attention LEDs (cell, cabinet and I/O chassis attention LEDs) SYNOPSIS
cell cell]... username I/Ochassis I/Ochassis]... username cabinet cabinet]... username cabinet] cabinet]... username DESCRIPTION
The command flashes/turns off attention LEDs of cells or I/O chassis in the local complex. The command can also be used to start flashing or stop flashing cabinet number LEDs. If either the option or the option is specified, the scope of the command will be the specified tar- get complex. If a cell or I/O chassis attention LED is made to flash, the cabinet number LED of the cabinet that contains the cell/ I/O chassis can also be made to flash by using the option. Likewise, if a cell or I/O chassis's LED is being turned off, the cabinet number LED can also be made to stop flashing using the option. Note: This command does not read or display the state of any LED. Users must observe the hardware itself to determine the state. Refer to the for a description of the partition management terms used in this man page. Options and Arguments recognizes the following command line options and arguments: Start or stop flashing the cabinet number LED of the cabinet that contains the cell or I/O chassis. The option is only available with the and options. Start flashing or stop flashing the cabinet number LED of the specified cabinet. Turn off all cell attention LEDs. Flash/Turn off the specified cell attention LED. A cell can be specified either in the local (cabinet#/slot#) or global (cell#) format. For example, the cell located in cabinet 0, slot 4 is locally identified as 0/4 or globally as simply 4. Turn off specified attention LED(s). This is the default. Allows access to the complex specified by the option. The accessed complex is then considered the target complex. Access is through the service processor's LAN port. The option is required if this option is used. If this option is specified, the command prompts for the password. If an error is reported when you attempt to connect using this option, check to see that IPMI LAN access has not been disabled on the remote service processor. Access to the complex through IPMI over LAN can be enabled or disabled by logging on to the service processor and using the command from the Command Menu. The and options are mutually exclusive. This option should only be used in combination with either the option. IPaddress|hostname specifies the IP address or hostname of the target partition or complex Turn off all I/O chassis LEDs. Flash/Turn off the specified I/Ochassis attention LED. An I/Ochassis must be specified in the form of cabinet#/enclosure#/chassis#. For example, the I/O chassis located in cabinet 0, enclosure 1 and I/O chassis slot 1 is identified as 0/1/1. Limit the scope of the or option to a given cabinet. Start flashing specified attention LED(s). The option is unavailable with or The and options are mutually exclusive. Specifies the required authorization to access a partition other than the local partition (but can also be used as a loopback access to the local partition). The complex to be modified is the one in which this target partition resides. The option is required if this option is used. If this option is specified, the command prompts for the password. username specifies a configured user name on the target partition. Note: This command is a Web-Based Enterprise Management (WBEM) Client Application. The option accesses the target partition using a Secure Sockets Layer (SSL) connection. If errors are reported, check that the conditions described in the section are satisfied. Mapping of Global Cell Numbers to Local Cell Numbers The cabinets in a complex are numbered starting from 0. The cell slots in each cabinet are also numbered starting from 0. Each cabinet can have a maximum of 8 cells. For example, the cells located in cabinet 0 will have the following cell numbers in global format: 0, 1, 2, 3, 4, 5, 6, 7. The cell numbers in corresponding local format will be 0/0, 0/1, 0/2, 0/3, 0/4, 0/5, 0/6, 0/7. Similarly the cells located in cabinet 1 will have the following cell numbers in global format: 8, 9, 10, 11, 12, 13, 14, 15. The cell numbers in corresponding local format will be 1/0, 1/1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7. From the above convention the cell located in cabinet 1, slot 0 is identified in the local format as 1/0 or in the global format as 8. The command will display the above cell as "cab1,cell0". The cell located in cabinet 1, slot 4 is identified in the local format as 1/4 or in the global format as 12. The command will display the above cell as "cab1,cell4". See parstatus(1). RETURN VALUE
The command exits with one of the following values: Successful completion. Error condition occurred. No LED associated with specified object. EXAMPLES
Flash the attention LED of the cell located in cabinet 0 slot 4 and also flash the attention LED of the cabinet in which it is contained. Turn off the attention LEDs of 2 cells located in cabinet 0, slot 4 and cabinet 0, slot 6. DEPENDENCIES
This command uses the Web-Based Enterprise Management (WBEM) product and some of its configuration settings. If you encounter connection errors when using the option, check that the following two conditions are satisfied: o Use the command (see cimconfig(1M) in the WBEM product documentation) to verify (and correct if necessary) the setting of the following two variables: o o o The target partition's digital certificate has been appended to the local partition's Shared Authentication Store. For the nPartition commands, the Shared Authentication Store is stored in the file: This file is used by all the clients, which use SSL based certificates. If these clients trust a target partition, then the nPartition commands will also trust the target partition. Refer to the WBEM documents specified in the section below for further information. AUTHOR
was developed by the Hewlett-Packard Company. SEE ALSO
parstatus(1), cplxmodify(1M), frupower(1M), parconfig(1M), parcreate(1M), parmgr(1M), parmodify(1M), parremove(1M), parunlock(1M), parti- tion(5). on on on fruled(1)
All times are GMT -4. The time now is 10:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy