The exec tag has no wiki summary.
2
votes
3answers
104 views
`solaris + xargs command for solaris
the command
find /tmp -name 'core*' -type f -print0 | xargs -0
works fine on Linux,
but xargs -0 option is not legal on Solaris
what is the equivalent option ( xargs? ) for Solaris 10
second ...
6
votes
1answer
221 views
redirect and log script output
I am trying to tidy up the following snippets, design goals are to log all output from a script, and should not be a wrapper. Less lines are better.
I don't care about user inputs (at this stage), ...
2
votes
1answer
29 views
exec cp failes from script, yet works when issued directly
I have a script that copies SQL backups to a windows server. Here's the line from /etc/fstab:
//my.win.box/share$ /winshare cifs ...
3
votes
3answers
159 views
What after exec() in ls command. Is the parent process printing the output to the console or the child?
I have a simple doubt on execution of the command ls. As per my understanding from the research I have done on the internet, I understood the below points.
When we type ls command shell interprets ...
3
votes
2answers
102 views
Copy stdout and stderr to a log file and leave them on the console within the script itself
Using bash, how do I copy stderr and stdout to a log file and also leave them displayed on the console?
I would like to do this within the script itself using an exec.
I tried with
exec ...
0
votes
1answer
72 views
Switching to another shell without copying environment variables
From tcsh, if I try:
exec /home/path/to/my/zsh
it works (I enter a Zsh shell)
but if I try
exec -c /home/path/to/my/zsh
I get:
-c Command not found
How do I switch to my Zsh shell and start ...
0
votes
1answer
193 views
Rename files and directories with a special characters on solaris machines
The target of the following code ( commands ) is to rename files/directories and also support files/directories with a special characters as "@" or "." etc
those commands are run fine on Linux ...
3
votes
3answers
118 views
Find functions, commands, and builtins [duplicate]
Possible Duplicate:
Executing user defined function in a find -exec call
Suppose I have the following bash code:
!#/bin/bash
function print_echo (){
echo "This is print_echo Function" ...
0
votes
2answers
203 views
variables in find command and more shell problem [duplicate]
Possible Duplicate:
Recursive rename files and directories
I wrote the following script:
#!/bin/bash
SAVEIFS=$IFS
alias export='export'
IFS=$(echo -en "\n\b")
find $1 -name "*" ...
