Sponsored Content
Top Forums Shell Programming and Scripting Redirect string from bash stderr to user stdin Post 302998232 by fredestet on Saturday 27th of May 2017 12:00:04 PM
Old 05-27-2017
but that one-liner (which wouldn't work like that anyways) contains two calls of command. i would like to know, for several reasons, whether this can be done with a single call of command.

Last edited by fredestet; 05-27-2017 at 07:42 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

redirect stderr to dev/null in bash env.

Working in a bash environment, in the following example, how do I direct the error message that putting in an invalid flag (-j for example) would normally produce to dev/null? while getopts "abcd" opt do case "$opt" in i) a etc ;; r) b etc ;; f) c etc ;; v) d... (7 Replies)
Discussion started by: Sniper Pixie
7 Replies

2. Shell Programming and Scripting

redirect STDIN

can you redirect STDIN with command arguments? I have tried this approach: # ./script -option <argument1> <argument2> 0<$2 # $2: ambiguous redirect Is this possible? (4 Replies)
Discussion started by: prkfriryce
4 Replies

3. Shell Programming and Scripting

can't redirect stderr in bash

Consider: #!/bin/sh #this is a shell script in sh (bourne) grep missingfile 2>errout.txt It works from the command line, but keeps producing errors from the script. So how do I redirect in a bash shell...or bourne? (3 Replies)
Discussion started by: lumix
3 Replies

4. Programming

Redirect stdin and out to sockets

For windows was pretty simple to redirect the std in a and out of a child process for "cmd.exe " command prompt terminal to a socket using connected pipes passed to a new process in the STARTUPINFO structure. BOOL b = ::CreatePipe((LPHANDLE)h_stdInRead,(LPHANDLE)hsdtInWriteTmp, &SecAttrib,... (1 Reply)
Discussion started by: gyula
1 Replies

5. Shell Programming and Scripting

inline redirect stdin

Hi: I have the next script on ksh #!/usr/bin/ksh cd $FUENTES qdesign <<-! \$/opt/cognos/ph843e/bin/qtp <<-! \$/opt/cognos/ph843e/bin/quiz <<-! ! ! ! This script is very simple, i want to nest three process quiz into qtp, and this into qdesign. When I run it , i receive the... (5 Replies)
Discussion started by: ct2marer
5 Replies

6. UNIX for Advanced & Expert Users

inline redirect stdin

Hi: I have the next script on ksh #!/usr/bin/ksh cd $FUENTES qdesign <<-! \$/opt/cognos/ph843e/bin/qtp <<-! \$/opt/cognos/ph843e/bin/quiz <<-! ! ! ! This script is very simple, i want to nest three process quiz into qtp, and this into qdesign. When I run it , i receive the next... (2 Replies)
Discussion started by: ct2marer
2 Replies

7. Shell Programming and Scripting

Cannot redirect to STDIN in a shell script

I am unable to use STDIn redirection with < (commands) When I do the following, both approaches work and give the same results: 1. $ printf "aaa\nbbb\n" > file1 $ printf "111\n222\n" > file2 $ cat file1 file2 aaa bbb 111 2222. $ cat <(printf "aaa\nbbb\n") <(printf "111\n222\n") aaa... (8 Replies)
Discussion started by: metaltree
8 Replies

8. Shell Programming and Scripting

Redirect String to STDIN

Looking for the proper way to bring a string into the stdin. I have a string that I would like to grep and awk. Each have to be run separately, not piped together. So far, the only way I could figure out how is to echo the string and pipe it: echo 'This is my string' | grep my (3 Replies)
Discussion started by: Panman82
3 Replies

9. UNIX for Advanced & Expert Users

How to set font color for STDIN,STDOUT and STDERR?

I want to differentiate the STDOUT and STDERR messages in my terminal . If a script or command is printing a message in terminal I want to differentiate by colors, Is it possible ? Example: $date Wed Jul 27 12:36:50 IST 2011 $datee bash: datee: command not found $alias ls alias... (2 Replies)
Discussion started by: ungalnanban
2 Replies

10. Shell Programming and Scripting

Redirect stdout/stderr, except e.g. "STRING"

Hi, I'm running a program (Python) whose output I would like to redirect to a log. But the program calls a library (that I cannot change), which outputs all sorts of useless information. I would like to redirect all output from my Python program into this log, except output that matches the... (7 Replies)
Discussion started by: rswindle
7 Replies
fs_wrapper(5)							File Formats Manual						     fs_wrapper(5)

NAME
fs_wrapper - configuration and binary files used by file system administration commands SYNOPSIS
FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... DESCRIPTION
The commands listed in the SYNOPSIS can operate on different types of file systems. Each command (except for reads file system specific configuration files that control the command's behavior, and invokes a file system specific binary file to do the actual work. FStype is the file system type as optionally specified on the command line. If FStype is not given, then the file system type is determined from by matching an entry in this file with a device provided with the command (see individual commands for details of usage). Administrators may also define a default file system type for the above commands via the file If this file exists, and contains the line: (e.g., then the above commands will assume the FStype given in unless an FStype is provided on the command line or is in The default file system specification is provided to maintain compatibility with pre-10.0 invocations of the commands. See the FILES section for a list of the files used. WARNINGS
The configuration files are supplied by HP or by other file system vendors. They are not meant to be edited by System Administrators. Corruption or removal of these files may lead to strange behavior, including the inability to boot. The format of the configuration file is subject to change. The file system specific binary files are not normally executed directly. However, if the configuration files become unusable, direct exe- cution of these binary files may be a useful step in repairing and running the system again. The binary files accept the same arguments as the commands by which they are executed. The command is a special case. This command currently does not read a configuration file, and does not execute a file system specific binary file if FStype is or The binary that handles these FStypes also processes other FStypes and calls the file system specific command if appropriate. For historical reasons, the binary files also handle and so there are no separate binary files for the latter two file systems. The commands (except will not work if they are renamed, because they are symbolically linked to a single executable FILES
FStype is the file system type as optionally specified on the command line. command is the name of the command. File system specific binary files for the and commands. There may be additional file system specific binary files in this directory that are not associated with File system specific binary files for the remaining commands. There may also be other file system specific binary files in this directory that are not associated with Configuration files for each file system type. File in which the default file system type can be defined. If this file does not exist, there is no default file system type. Static information about the file systems SEE ALSO
ff(1M), fsck(1M), fsdb(1M), mkfs(1M), mount(1M), ncheck(1M), newfs(1M), quot(1M), quotacheck(1M), volcopy(1M), fstab(4). fs_wrapper(5)
All times are GMT -4. The time now is 06:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy