Hi,
I am looking for a way to redirect the result from a command into a variable.
This is the scenario.
Using the find command I will be getting multiple records/lines back.
Here is the command I am using:
find /”path”/ -name nohup.out -print
This now is giving me the paths and file... (1 Reply)
hi
I want to suppress the output of dos2unix command in my shell script. I'm using follwing command in my script
dos2unix somefile >/dev/null
But it's still showing output while executing the script.Please help me to sort this out
Thanks (4 Replies)
I have a Linux socket server program. I need to run the commands sent by the client and return the output to client. Is there a quicker way?
I tried with
ptr=popen(command, "r"); and then
fgets(buf, size,ptr);
write buf to socket
fgets hangs for me.
Now, I would like to know if I can... (3 Replies)
Hi Everyone,
Can anyone please tell me, how can I redirect the grep command output to same file. I am trying with below command but my original file contains no data after executing the command.
$grep pattern file1 > file1
Kind Regards,
Eswar (5 Replies)
Hi
can anyone tell me how to redirect the ouput of a cvs command to a file as well as the console?
i tried using
cvs add <filename> | tee logFile
cvs add <filename> 2>logFile 2>&1
All i could get is only on console or on file.
Please help
Thanks (2 Replies)
Hi, I put a for loop in a script to eject backup tapes from the robot. The command echo' output goes to the log file without problem, but command vmchange's output does not go to the log file although it's working fine. It still displays on the screen. I've tried '2>&1 1>$log', but nothing changed.... (5 Replies)
(/home/user1)-> more script.sh
#!/bin/ksh
( echo open devicename
sleep 3;
echo user;
sleep 2;
echo password;
sleep 2;
echo "/info/dump"; ---------> This needs to redirect to a file .Can be number of pages
sleep 2;
echo "exit" ) | telnet
Please use code tags next time for... (2 Replies)
I would like to redirect output of command line in for loop as $line.
Output should be processed as line but instead it throw whole output.
Could somebody help me on how to redirect output of command line and process it line by line without sending output to any file.
below is my code ... (1 Reply)
Hi,
How can I redirect the output of a following command to a variable.
ftp myservername
ftp> user
(username) guptaji
331 Password required for guptaji.
Password:
ftp> size /home/salil/abc.dat
ftp> a='size /home/salil/abc.dat'
?Invalid command
I want to redirect value of size to... (1 Reply)
hi,
i am using ftp to get files from remote server. inside the ftp i want to us ls -ltr command and send the output of it to a file.
ftp -n remote_server <<_FTP
quote USER username
quote PASS password
prompt noprompt
pwd
ls -ltr
get s1.txt
bye
_FTP
i... (4 Replies)
Discussion started by: Little
4 Replies
LEARN ABOUT DEBIAN
procmeter3-log
PROCMETER3-LOG(1) General Commands Manual PROCMETER3-LOG(1)NAME
procmeter3-log - A system monitoring / logging program.
SYNOPSIS
procmeter3-log [-h|--help] [--rc=<filename>] [--...] [...]
DESCRIPTION
ProcMeter Displays one or more pieces of information about the operating system and other resources. Most of the information that is dis-
played comes from the /proc filesystem. The program is modular and very configurable.
OPTIONS
The command line options are described below.
-h Provides a help message listing the available outputs. This will be different for different computers depending on the Linux kernel
version that is being used and the hardware/software that is configured.
--rc=<filename>
Load the specified .procmeterrc file in stead of the searching in the usual places.
--... A list of configuration file options that will override the values in the .procmeterrc file. The format of these options is (for
example) --library.path=/usr/local/procmeter3 which is equivalent to the entry in the .procmeterrc file of
[library]
path = /usr/local/procmeter3
All spaces around the equal sign must be removed and if spaces are required in the value on the right hand side then quotes must be
used around the entire command line option.
... A list of names of outputs that are to be displayed. This can include any of the outputs that are available (see the -h option).
For the CPU usage is in a module named Statistics with an output named CPU and there are graph (-g), text (-t) and bar (-b) options.
Since this version of the program does not display anything, but logs the data to a file it does not matter which one is chosen. To
store the CPU usage data you would use the command line option Statistics.CPU-t
USAGE
When started the program will log all of the requested information on the standard output (stdout). The outputs that are displayed are
those from the command line and those from the .procmeterrc configuration file.
MODULES
The modules that are available for procmeter3-log are described in the procmeter3_modules(1) manual page.
SEE ALSO procmeterrc(5)procmeter3_modules(1)AUTHOR
Andrew M. Bishop 1998-2007
July 3, 2010 PROCMETER3-LOG(1)