10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i have some problems with regular expressions in a awk search pattern.
what i want to do:
i want to calculate the mean-value in the time from 00:00 to 06:00
how my data looks like:
....
04/01/13-01:40 670992 54802 80711 116460 156177
04/01/13-01:50 703725 60150 85498 ... (3 Replies)
Discussion started by: IMPe
3 Replies
2. Shell Programming and Scripting
I am trying to do the following task :
export ENV=aaa
export ENV_PATH=$(cd /apps | ls | grep $ENV)
However, it's not working. What's the way to change to directory and search some file in that directory in single command
Please help. (2 Replies)
Discussion started by: saurau
2 Replies
3. UNIX for Dummies Questions & Answers
Hi, i need help on how to do this:
to make a shell script that reads 2 parameters in command line, one directory and pattern. Then it must search for the string in all files starting from the indicated directory (including subfolders) and excluding binary files.
The results should show the... (1 Reply)
Discussion started by: ubu-user
1 Replies
4. Solaris
One small doubt. can anyone explain me the difference between directory read and execute permission. (2 Replies)
Discussion started by: rogerben
2 Replies
5. Shell Programming and Scripting
Hi Guys,
can any help to write a script to search for a file Recursively and i need to write a path of the file into some other file.
May be upto 5 directories.
Regards,
Rajanikanth. (3 Replies)
Discussion started by: Rajanikanth
3 Replies
6. Shell Programming and Scripting
Dear All,
I am new to Unix and i need a small Help from you Guys.....
The current structure of my system is as follows:
/Abc/xyz/cpd/std/re/doc
Each cpd directory has n number of std's. Each std has n number of re's.
My requirement is to write a UNIX script that would search whether doc... (8 Replies)
Discussion started by: Rajanikanth
8 Replies
7. Linux
Dear All,
I am new to Unix and i need a small Help from you Guys.....
The current structure of my system is as follows:
/Abc/xyz/cpd/std/re/doc
Each cpd directory has n number of std's. Each std has n number of re's.
My requirement is to write a UNIX script that would search whether doc... (1 Reply)
Discussion started by: Rajanikanth
1 Replies
8. UNIX for Dummies Questions & Answers
--------------------------------------------------------------------------------
Dear All,
I am new to Unix and i need a small Help from you Guys.....
The current structure of my system is as follows:
/Abc/xyz/cpd/std/re/doc
Each cpd directory has n number of std's. Each std has n... (1 Reply)
Discussion started by: Rajanikanth
1 Replies
9. UNIX for Advanced & Expert Users
Dear All,
I am new to Unix and i need a small Help from you Guys.....
The current structure of my system is as follows:
/Abc/xyz/cpd/std/re/doc
Each cpd directory has n number of std's. Each std has n number of re's.
My requirement is to write a UNIX script that would search... (0 Replies)
Discussion started by: Rajanikanth
0 Replies
10. Shell Programming and Scripting
I wanted to search in all the sub directories under /vob/project (recurse) in everything inside /vob/project.
search.run
for x in `cat search.strings`
do
find /vob/project -type f -print | xargs grep -i $x > ~/$x.txt
done
search.string
hello
whoami
I am getting the error ... (5 Replies)
Discussion started by: siva_jm
5 Replies
shevek::process(3) Library Functions Manual shevek::process(3)
NAME
shevek::process -
Create a process, optionally connection its standard in- and output streams to the calling program.
SYNOPSIS
#include <process.hh>
Inherits shevek::refbase.
Public Member Functions
Glib::RefPtr< shevek::fd > in ()
The standard input pipe, if it was requested.
Glib::RefPtr< shevek::fd > out ()
The standard output pipe, if it was requested.
Glib::RefPtr< shevek::fd > err ()
The standard error pipe, if it was requested.
pid_t pid ()
The process ID.
~process ()
The destructor. This kills the process if it was still running.
Static Public Member Functions
static Glib::RefPtr< process > create (std::string const &command, std::list< std::string > &argv, bool pipe_stdin=true, bool
pipe_stdout=true, bool pipe_stderr=true)
Create a process from a filename and an argument list.
static Glib::RefPtr< process > create (std::string const &command, std::list< std::string > &argv, std::list< std::string > const &envp,
bool pipe_stdin=true, bool pipe_stdout=true, bool pipe_stderr=true)
Create a process from a filename, an argument list and an environment.
static Glib::RefPtr< process > shell (std::string const &command, bool pipe_stdin=true, bool pipe_stdout=true, bool pipe_stderr=true,
std::string const &sh='/bin/sh')
Run a string with the shell.
static std::string run (std::string const &command, std::string const &sh)
Run a process and return its output.
static Glib::RefPtr< process > create (std::string const &command, bool pipe_stdin=true, bool pipe_stdout=true, bool pipe_stderr=true)
Create a process without arguments.
static Glib::RefPtr< process > create (std::string const &command, std::string const &a1, bool pipe_stdin=true, bool pipe_stdout=true, bool
pipe_stderr=true)
Create a process with one argument.
static Glib::RefPtr< process > create (std::string const &command, std::string const &a1, std::string const &a2, bool pipe_stdin=true, bool
pipe_stdout=true, bool pipe_stderr=true)
Create a process with two arguments.
static Glib::RefPtr< process > create (std::string const &command, std::string const &a1, std::string const &a2, std::string const &a3,
bool pipe_stdin=true, bool pipe_stdout=true, bool pipe_stderr=true)
Create a process with three arguments.
static Glib::RefPtr< process > create (std::string const &command, std::string const &a1, std::string const &a2, std::string const &a3,
std::string const &a4, bool pipe_stdin=true, bool pipe_stdout=true, bool pipe_stderr=true)
Create a process with four arguments.
static Glib::RefPtr< process > create (std::string const &command, std::string const &a1, std::string const &a2, std::string const &a3,
std::string const &a4, std::string const &a5, bool pipe_stdin=true, bool pipe_stdout=true, bool pipe_stderr=true)
Create a process with five arguments.
static Glib::RefPtr< process > create (std::string const &command, std::string const &a1, std::string const &a2, std::string const &a3,
std::string const &a4, std::string const &a5, std::string const &a6, bool pipe_stdin=true, bool pipe_stdout=true, bool
pipe_stderr=true)
Create a process with six arguments.
static Glib::RefPtr< process > create (std::string const &command, std::string const &a1, std::string const &a2, std::string const &a3,
std::string const &a4, std::string const &a5, std::string const &a6, std::string const &a7, bool pipe_stdin=true, bool
pipe_stdout=true, bool pipe_stderr=true)
Create a process with seven arguments.
static Glib::RefPtr< process > create (std::string const &command, std::string const &a1, std::string const &a2, std::string const &a3,
std::string const &a4, std::string const &a5, std::string const &a6, std::string const &a7, std::string const &a8, bool
pipe_stdin=true, bool pipe_stdout=true, bool pipe_stderr=true)
Create a process with eight arguments.
static Glib::RefPtr< process > create (std::string const &command, std::string const &a1, std::string const &a2, std::string const &a3,
std::string const &a4, std::string const &a5, std::string const &a6, std::string const &a7, std::string const &a8, std::string const
&a9, bool pipe_stdin=true, bool pipe_stdout=true, bool pipe_stderr=true)
Create a process with nine arguments.
Detailed Description
Create a process, optionally connection its standard in- and output streams to the calling program.
Member Function Documentation
static std::string shevek::process::run (std::string const &command, std::string const &sh) [static]
Run a process and return its output. A convenience function for running a process and catching its standard output in a string. This blocks
until the process has exited.
static Glib::RefPtr<process> shevek::process::shell (std::string const &command, boolpipe_stdin = true, boolpipe_stdout = true, boolpipe_stderr
= true, std::string const &sh = '/bin/sh') [inline, static]
Run a string with the shell. Note that the process is forked from the shell, and so does not get killed when the process goes away.
Author
Generated automatically by Doxygen for libshevek from the source code.
libshevek Fri May 11 2012 shevek::process(3)