Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Can't Define And Or Export Directories, Help writing Bash scripts
post Aug 24 2005, 03:39 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 24-August 05
Member No.: 5,436

Hi All,

I'm writing a bash script to create a temporary directory on another computer and then to copy files from my home directory onto the new temporary directory. I can't seem to use the "cp" command in a way that the shell recognizes. I'm reasonably certain that PATH is set correctly, but uncertain on everything else. Any help?


Here's the script:____________________________________________________________


export PATH=/home/oklej/tinker/bin
export tinkerdir=/home/oklej/tinker
export tempdir=$TMPDIR # temp space on local compute node
export inputdir=/home/oklej/tinker # location of input files
export outputdir=/home/oklej/tinker/results # location to put results into

cp /inputdir/1UBQ.pdb /tempdir
cp /tinkerdir/params/amber99.prm /tempdir
Go to the top of the page
+Quote Post
post Aug 25 2005, 05:47 AM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,806
Joined: 23-January 03
Member No.: 360

cp /inputdir/1UBQ.pdb /tempdir
cp /tinkerdir/params/amber99.prm /tempdir

It would be similar to using $HOME i.e.
CP $inputdir/params/amber99.rpm $tempdir/
cp $tinkerdir/params/amber99.prm $tempdir/
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th March 2018 - 05:30 PM