LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2012, 05:07 AM   #1
bhanuprakashtth
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
want to write a shell script to copy a file to the desktop and reboot machine .


Hi friends ,

i have to write a shell script, that copy a file from the pendrive to desktop and then reboot the machine. Once the system reboots after 1 min i want to copy the same file and reboot . This should happen atleast 3 times .

please help out......
 
Old 03-02-2012, 10:17 AM   #2
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 715

Rep: Reputation: 72
Are you sure you want to copy the file to the desktop, not some other folder? It's such a simple operation that you can do manually, why do you need a script to automate it?
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write a shell script which will check a file name in a dir and copy it siris Programming 3 04-08-2010 08:54 PM
write script to copy a file kavehiks Linux - General 5 10-21-2009 04:50 PM
Copy file from one linux server to another using shell script prateek_sahu Programming 2 08-31-2009 05:11 AM
How to copy one file and to multiple directories using shell script? cebuy Programming 8 03-31-2009 08:04 PM
shell script to copy lines from a file Warmduvet Programming 2 09-14-2004 10:25 PM


All times are GMT -5. The time now is 08:32 PM.

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