I suspect it MAY have something to do with the directory's name... "test"...
...which is the name if the shell command used in an 'if' statement (see man test)
Try re-running the test again.
But before doing so, run a
Code:
ls -ld /home/dell/test
and use "full paths" to everything...
In other words:
Code:
$ cd /home/dell/test
$ ls -la /home/dell/test
$ ls -ld /home/dell/test
$ mv /home/dell/test/new /home/dell/test/new.old
$ pwd
$ ls -la
$ ls -ld /home/dell/test
I don't follow what these are...
this is what my text says...
"When a process is started, a duplicate of that process is created. This new process is called the child and the process that created it is called the parent. The child process then replaces the copy for the code the parent... (1 Reply)
:(
Since I'm fairly new to the scene and don't have much experience in shell programming, I decided to check out the net for a useful script or two.
What I'm looking for is a script that would let me enter a PID and then show the process tree associated with it.
So it would display the (grand-)... (2 Replies)
Hi all,
I am writing a script which calls other third party scripts that perform numerous actions. I have no control over these scripts.
My problem is, one of these scripts seems to execute and do what it is meant to do, but my calling / parent script always exits at that point. I need to... (4 Replies)
Hi there,
I want to restrict a users account to only a subdirectory, but it does not seem to be working.
For example
/dir1/dir2/dir3/dir4
user A is only allowed to do things in dir4. the permission is 777.
i've set the permissions to 700 on dir3, dir2, and dir1 to prevent them from... (3 Replies)
1. The problem statement, all variables and given/known data:
I need to make an program that in a loop creates one parent and five children with fork(). The problem i'm trying to solve is how to delete the parent and child of the childīs process.
2. Relevant commands, code, scripts,... (0 Replies)
Hi everyone
i am very new to linux , working on bash shell.
I am trying to solve the given problem
1. Create a process and then create children using fork
2. Check the Status of the application for successful running.
3. Kill all the process(threads) except parent and first child... (2 Replies)
Kindly help below command details in UNIX.
1.What is the Unix command to see parent and child directory details starting from root directory in tree structure using LS-LRT or any other way
2.What is the Unix command to see parent and child directory details starting from root directory in... (2 Replies)
Hi All,
Just started learning unix and stuck into below issue.
Suppose i have folder structure as below.
Dir1/Dir2/Dir3/File1.msg
I am looking to rename the file name from File1.msg to File2.msg but from the parent Dir1
From Dir3 i can easily run the command like
mv File1.msg... (2 Replies)
I have requirement where I need to fail parent if any one of the child process fails. Here is the code snippet
for i in 1 2 3 4 5 6 7 8 9 10
do
child_script $i &
done
wait
I need to fail my main script if any one of my child process fails (8 Replies)
Discussion started by: gvkumar25
8 Replies
LEARN ABOUT DEBIAN
arch::test::framework
Arch::Test::Framework(3pm) User Contributed Perl Documentation Arch::Test::Framework(3pm)NAME
Arch::Test::Framework - A test framework for Arch-Perl
SYNOPSIS
use Arch::Test::Framework;
my $fw = Arch::Test::Framework->new;
my $archive = $fw->make_archive;
my $version = $archive->make_version();
my $tree = $fw->make_tree($version);
#
# do something with $tree
#
$tree->import('initial import');
DESCRIPTION
Arch::Test::Framework is a framework to quickly generate testing data (archives, versions, trees, changesets, etc) for arch-perl unit
tests.
METHODS
new, arch_uid, home_dir, library_dir, archives_dir, trees_dir, make_archive, make_category, make_branch, make_version, make_tree.
new [%args]
Create a new arch-perl test environment.
Valid keys for %args are home to specify an existing test environment to reuse, library to specify a different revision library path,
archives to specify a different archives directory, and trees to specify a differente project tree directory. The default values are
"$home/library", "$home/archives", and "$home/trees" respectively.
A different arch user id can be selected with the userid key, the default is "Arch Perl Test <arch-perl-test@example.com>".
arch_uid
home_dir
library_dir
archives_dir
trees_dir
These methods return the environment parameters as initialized by new.
make_archive [archive_name]
Create a new archive in the archives directory. If archive_name is not specified a unique name is generated. The archive name is
returned. Returns an Arch::Test::Archive reference for the archive.
make_tree version [name]
Create and initialize ("tla init-tree") a new project tree for version. I name is not specified, a unique identifier will be generated.
Returns an Arch::Test::Tree reference for the project tree.
AUTHORS
Mikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel).
Enno Cramer (uebergeek@web.de--2003/arch-perl--devel).
perl v5.10.1 2005-03-28 Arch::Test::Framework(3pm)