10-28-2014
I knew it the instant I saw your garbled error messages. They are garbled because the \r is sending the cursor to the beginning of the line without sending it down one line, causing partial overwrites.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
Iam in directory A. I run a script from there. inside the script i have a command cd B.
When i come out of the script directory is A only.
Even when i come out scrip i want the directory to be B
How to achieve (2 Replies)
Discussion started by: mkan
2 Replies
2. Shell Programming and Scripting
How do u change ur directory using a shell script?? (0 Replies)
Discussion started by: laxmi
0 Replies
3. Linux
How do u change ur directory using a shell script?? (12 Replies)
Discussion started by: laxmi
12 Replies
4. UNIX for Dummies Questions & Answers
I have a directory that is existing under my root dir of the FTP server. The DIR name is 'Software Patch'. I want to move in to that DIR to download some patches. But, when I issued a command 'cd SOftware Patch', the system said that it cannot find the dir 'Software'. I tried all possible ways like... (2 Replies)
Discussion started by: vskr72
2 Replies
5. Shell Programming and Scripting
Hi,
I am trying to change the directory in my script, & want to check if the directory is present or not .
Ex:
cd /home/xyz/temp/logs
if the logs directory is not present i want to show the error in script instead of shell script error.
Can anybody please help me on the same
Thx in... (2 Replies)
Discussion started by: vls1210
2 Replies
6. Shell Programming and Scripting
HI,
I need to change the working directory by using the shell script
/Export/home/user_name
I have to go one step back like
/Export/home
Please help on this.:confused: (3 Replies)
Discussion started by: thelakbe
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I Installed mysql on my CentOS 6.2 Server. But when I tried to change the location of /var/lib/mysql to another directory. I can't start the mysql. Below is what I've done
yum install mysql mysql-server mysql-devel
mkdir /path/to/new/
cp -R /var/lib/mysql /path/to/new
chown -R... (1 Reply)
Discussion started by: ganitolngyundre
1 Replies
8. 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
9. Shell Programming and Scripting
Hi All,
There is a code like below in my script
###############################################
###Create Directories and Sub-Directories
###############################################
dpdir=DP_FROM_${from}_TO_${to}
mkdir $dpdir
cd $dpdir
mkdir AWQM WFCONTROLLER PROVCO PRISM
... (1 Reply)
Discussion started by: pvmanikandan
1 Replies
10. Shell Programming and Scripting
Hi,
I have been trying to execute the below command by changing directory and then copying contents of one directory to another by doing some file name manipulations in between. However this isnt working since as soon as the statement completes it goes back to the original folder. Can someone... (5 Replies)
Discussion started by: HikingLife
5 Replies
LEARN ABOUT REDHAT
killpg
KILLPG(2) Linux Programmer's Manual KILLPG(2)
NAME
killpg - send signal to a process group
SYNOPSIS
#include <signal.h>
int killpg(int pgrp, int sig);
DESCRIPTION
Killpg sends the signal sig to the process group pgrp. See sigaction(2) for a list of signals. If pgrp is 0, killpg sends the signal to
the sending process's process group.
The sending process and members of the process group must have the same effective user ID, or the sender must be the super-user. As a sin-
gle special case the continue signal SIGCONT may be sent to any process that is a descendant of the current process.
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
EINVAL Sig is not a valid signal number.
ESRCH No process can be found in the process group specified by pgrp.
ESRCH The process group was given as 0 but the sending process does not have a process group.
EPERM The sending process is not the super-user and one or more of the target processes has an effective user ID different from that of
the sending process.
CONFORMING TO
SVr4, 4.4BSD (The killpg function call first appeared in 4.0BSD).
SEE ALSO
kill(2), getpgrp(2), signal(2)
BSD Man Page 1993-07-23 KILLPG(2)