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)
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)
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)
Hi to all.
It's possible with a single line redirect to stdout and to a file a echoed string?
I need something like this:
echo "Pizza" >/tmp/file (and same time print to stout "Pizza")...
What can i do? (2 Replies)
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)
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)
Hi,
I'm running a script which would ssh to various ssh-trust enabled servers and get a list of packages installed. The output of this command would be redirected to a file
ssh -q $i 'rpm -qa --queryformat '%{NAME}\t\t,%{ARCH}\t\t,%{VERSION}-%{RELEASE}\t\t,%{INSTALLTIME:date}\n'|sed... (2 Replies)
Hi,
I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not...
I have .sh script like below and i have servers.txt contains all the list of servers
#/bin/bash
for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies
LEARN ABOUT DEBIAN
krcp
RCP(1) BSD General Commands Manual RCP(1)NAME
rcp -- copy file to and from remote machines
SYNOPSIS
rcp [-45FKpxz] [-P port] file1 file2
rcp [-45FKprxz] [-P port] file... directory
DESCRIPTION
rcp copies files between machines. Each file argument is either a remote file name of the form ``rname@rhost:path'' or a local file (contain-
ing no colon or with a slash before the first colon).
Supported options:
-4, -5, -K, -F, -x, -z
These options are passed on to rsh(1).
-P port
This will pass the option -p port to rsh(1).
-p Preserve file permissions.
-r Copy source directories recursively.
DIAGNOSTICS
rcp is implemented as a protocol on top of rsh(1), and thus requires a working rsh. If you intend to use Kerberos authentication, rsh needs
to be Kerberos aware, else you may see more or less strange errors, such as "login incorrect", or "lost connection".
HISTORY
The rcp utility first appeared in 4.2BSD. This version is derived from 4.3BSD-Reno.
HEIMDAL April 16, 2003 HEIMDAL