LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 04: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, 09:17 AM   #2
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
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



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 07:54 PM
write script to copy a file kavehiks Linux - General 5 10-21-2009 03:50 PM
Copy file from one linux server to another using shell script prateek_sahu Programming 2 08-31-2009 04:11 AM
How to copy one file and to multiple directories using shell script? cebuy Programming 8 03-31-2009 07:04 PM
shell script to copy lines from a file Warmduvet Programming 2 09-14-2004 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:45 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
Open Source Consulting | Domain Registration