Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-08-2006, 09:56 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Create script in CentOS4 to copy folder but promt user to enter name of destination

I need to create a script (which I have never done) that will allow me to copy a folder from one location to another, but the destination folder shuld be created according to what a user enters. Also, is there a way to run this bash by clicking on a PuTTY shortcut so it can be ran from Windows? Thanks in advanced for the help.

Last edited by mastermindpr; 02-08-2006 at 09:59 AM.
Old 02-08-2006, 11:22 AM   #2
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282 has an example for user input in a script
Old 02-08-2006, 11:45 AM   #3
LQ Newbie
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your help. I got it now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
starting script, init by copy/create file in (samba) folder? muab Linux - General 7 06-22-2005 07:02 PM
Auto Change Date on copy to user folder mariusak Linux - General 4 05-28-2005 07:42 PM
Trying to copy a user folder from ntfs hd that is locked. bluedevlx Linux - Security 1 05-18-2005 03:28 PM
can copy-paste or create new file/folder, if boot from live cd gjo Linux - Distributions 3 09-17-2004 09:43 AM
Changing the BASH promt Blade_Powers General 2 03-28-2004 08:34 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration