09-11-2009
C'est 2>/dev/null que tu dois écrire qui veut dire "envoie les messages d'erreur à la poubelle".
2>&1 redirige les erreurs sur la sortie standard (ecran) donc les affiche ensuite tu dis envoie sortie ecran dans poubelle mais plus rien à afficher....
En espérant avoir été assez clair....
regarde ce lien...très intéressant....
Chapitre
---------- Post updated at 08:32 AM ---------- Previous update was at 08:31 AM ----------
Euh dernière chose....on va se faire taper sur les doigts...ce forum est ANGLAIS...
@+
10 More Discussions You Might Find Interesting
1. Programming
Here is my problem. I don't know make this redirection thing work. The output file (called output.c) looks like this
#include<stdio.h>
int main()
{
int k;
int m;
print f("%d\n", k);
printf("%d\n", m);
return 0;
}
the input file(called input.c) is this
#include<stdio.h>
int... (2 Replies)
Discussion started by: Shallon1
2 Replies
2. Shell Programming and Scripting
Hi,
The code below works, it's a part of a bash shell script that serve to search a pattern $pattern_da_cercare in the files contained in a directory $directory_iniziale.
Now the proble is:
How can I redirect stderr to a file?
PS: so I want to redirect ALL the errors to a file.
I tryed... (9 Replies)
Discussion started by: DNAx86
9 Replies
3. Shell Programming and Scripting
hi all,
how to redirect the stdout msg in command line and file at the same time?
e.g
i got the script named test.sh, content as following:
#!/bin/sh
echo "111"
when i run the script ./test.sh > log.log, it will wirte the "111" into log.log, but how to show the "111" in command line... (2 Replies)
Discussion started by: eric_wong_ch
2 Replies
4. Shell Programming and Scripting
I have a csh script which I am using to run a program
set data = $argv
set inmod = $argv
set nxz = $argv
# Remove the file extension .pmod
set data = ` echo $data | awk 'BEGIN { FS=".dat" } { print $1 }' `
set inmod = ` echo $inmod | awk 'BEGIN { FS=".vmod" } { print... (8 Replies)
Discussion started by: kristinu
8 Replies
5. UNIX for Dummies Questions & Answers
Hi Guys,
I m new to UNIX and new to this forum. Was wondering if someone can help me understand redirection (standard input output pipeline etc)
for starters, not too sure what this would mean
who | sort > sortedfile | pr | lp
im starting to understand common commands but when throwing... (2 Replies)
Discussion started by: jmack123
2 Replies
6. Shell Programming and Scripting
Hello everyone,I'm reading a book and there's code fragment:
exec 3>&1
ls -l 2>&1 >&3 3>&- | grep bad 3>&-
exec 3>&-
It says that the red part of that code does not close fd 3 but the green does close the fd 3.I can't understand that.....Why?Any predicate will be appreciated.:) (18 Replies)
Discussion started by: homeboy
18 Replies
7. Shell Programming and Scripting
Hi i am facing a very strange problem
suppose the parameters which i passed to the script is
-o 140
then my code is as follows
echo $* | awk '{ for ( i=0;i<=NF;i++){if ($i= -o) { print ${i+1} } } ' | read abc
echo $abc
abc=`echo $* | awk '{ for ( i=0;i<=NF;i++){if ($i= -o) { print... (5 Replies)
Discussion started by: aishsimplesweet
5 Replies
8. Shell Programming and Scripting
I want to redirect stderr and have the following peice of code
$ cat t1.ksh
#!/bin/ksh
func2()
{
diff /tmp/jdlkwjdlkejew /tmp/djlkwejdlewdjew >$OUTPUT_FILE 2>>$ERR_FILE
}
func1()
{
let counter=0
while
do
print -u2 "Error: In main function"
func2
let... (1 Reply)
Discussion started by: BeefStu
1 Replies
9. Shell Programming and Scripting
Hello All,
I am using the below script to gather various tools running by the user, we have more than 100 tools running on the server so my challenge is to redirect memory & cpu load to the file with the name of the tool.so am using the below script i am stucking how to redirect to the file... (2 Replies)
Discussion started by: ajaincv
2 Replies
10. UNIX for Dummies Questions & Answers
explain the redirections 1>, 2>, 3>, .....
and 1< ,2<,3<.....
where we use these things
thanks
Thread moved from AIX forum (2 Replies)
Discussion started by: tsurendra
2 Replies
LES(8) Maintenance Commands LES(8)
NAME
les, bus - ATM LAN Emulation service demons
SYNOPSIS
les [-d module] [-m module] [-f configuration_file]
bus [-d module] [-m module] [-f configuration_file]
DESCRIPTION
LE Service consists of three components: LAN Emulation Configuration Server (lecs(8)), LAN Emulation Server (les) and Broadcast and Unknown
Server (bus).
Les performs the control coordination function for the emulated LAN. LE clients register MAC addresses and/or route descriptors they rep-
resent to les, and later query it when they want to resolve MAC addresses/route descriptors into ATM addresses. Other LE control messages
which are to be distributed to every client in ELAN are also sent to les. Les forwards these messages using Control Distribute VCC which it
has set up to every client in ELAN.
Bus handles data sent by clients to broadcast and multicast MAC addresses and some of the data directed to unicast addresses. LE Client has
a possibility to send data directed to some unicast address to the bus before target's ATM address has been resolved and the Data Direct
VCC has been established.
Configuration file example for les and bus:
[main]
memdebug=True
debug=True
[load]
#memdebug=True
#debug=True
[conn]
debug=True
#S1, LE Server's ATM address
#S1=:47:00:23:00:00:00:03:00:00:01:00:02:01:00:20:ea:00:05:aa:00
S1=:47:00:23:00:00:00:03:03:00:01:00:02:01:00:20:ea:00:0a:e9:01
#S2, LAN Type
S2="802.3"
#S3, Maximum Frame Size
S3=1516
#S4, Join Timeout, s
S4=15
#S5, Maximum Frame Age, s
S5=6
#S6, BUS Atm address
S6=:47:00:23:00:00:00:03:03:00:01:00:02:01:00:20:ea:00:0a:e9:02 #viulu
#S6=0,0,170
#ELANNAME="asdf"
The configuration file contains each modules name in brackets followed by variable definitions for that module. The definitions are of form
variable=value, where value can be either an integer, a truth value (True/False), a string enclosed in double quotes ("string") or an ATM
address in hexadecimal format. Variables that can be set are the debug/memdebug for each module and variables S1-S6 as defined in LE speci-
fication.
S1=Address of the LES. This address is used in ATM
signalling.
S2=Type of the emulated LAN. Valid values is "802.3".
S3=Maximum frame size. Valid value is 1516.
S4=Join Timeout. Time in seconds which LES waits for
LE_JOIN_REQUEST before tearing down a connection.
S5=Maximum frame Age. Currently not used.
S6=Address of the BUS. This address is used in ATM signalling.
ELANNAME= Name of the emulated LAN
SIGHUP causes restart of the server. All resources are released and server is started. SIGUSR1 causes the server to dump its internal
state. SIGUSR2 shuts down the server (hopefully) gracefully.
OPTIONS
-d module
Set debugging messages on for a module. "All" sets debugging on for all modules.
-m module
Set memory debugging messages on for a module. "All" sets debugging on for all modules.
-f configuration_file
Use the specified configuration file instead of .lanevars.
FILES
.lanevars configuration file
BUGS
Servers don't establish point-to-multipoint connections to LE clients as the specification states, which means that some LE clients won't
work with these servers.
Supports only IEEE 802.3 / Ethernet type of ELANs.
This manual page is confusing.
AUTHOR
Marko Kiiskila, TUT <carnil@cs.tut.fi>
SEE ALSO
lecs(8), atmsigd(8), zeppelin(8)
Linux Sep 11, 1996 LES(8)