Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-02-2012, 05:07 AM   #1
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
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 968

Rep: Reputation: 81
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?


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration