mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2015-11-22, 16:39   #1
wildrabbitt
 
Jul 2014

6778 Posts
Default copying files on ubuntu

Hi,

I'm trying to copy the mprime files into a flash stick so I can run from the stick.

When I type
root@william-GA-78LMT-USB3:/home/william/Downloads/p95v287.linux64# cp mprime /media/38b3e3a6-e319-4e3a-8bed-dcd7c224057a\$/mprime_folder

I get

cp: accessing `/media/38b3e3a6-e319-4e3a-8bed-dcd7c224057a\$/mprime_folder': Not a directory

I'm using ubuntu.

I created the mprime_folder folder on the stick using mkdir.

Can anyone help?
wildrabbitt is offline   Reply With Quote
Old 2015-11-22, 17:06   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3×11×107 Posts
Default

I suspect the path you specified is not right. Use "cp mprime /media" but do not press "enter" and hit "tab" a couple of times to get a listing. Enter the first few characters of the the next directory and hit "tab" again. Etc.

@mods: please move to the Linux subforum

Last fiddled with by paulunderwood on 2015-11-22 at 17:10
paulunderwood is offline   Reply With Quote
Old 2015-11-22, 21:10   #3
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

47×197 Posts
Default

The '$' sign might be the culprit. It is best to avoid such symbols in folder or file names (as well as spaces, exclamation points, '*', etc); you still can use such folders and files but you may be hit with similar snafus every once in a while.

The special characters need 'protection': Try embedding each argument in ' quotes. And/or add \ before $, too. Another trick can be to cut the folder name shorter and replace the rest with *; the OS will run on-the-fly expansion for you...
One or another might help.
Batalov is offline   Reply With Quote
Old 2015-11-22, 21:24   #4
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

100100101110102 Posts
Default

Quote:
Originally Posted by Batalov View Post
And/or add \ before $, too. Another trick can be to cut the folder name shorter and replace the rest with *; the OS will run on-the-fly expansion for you...
The other day I was interacting with a very serious technology companies' "front line" person.

She gave the URL verbally as "H T T P Colon Back Slash Back Slash"...

Just what (TFF) is it going to take to educate the populous of the difference between forward and back slashes?
chalsall is online now   Reply With Quote
Old 2015-11-22, 22:12   #5
wildrabbitt
 
Jul 2014

3·149 Posts
Default

Thanks for the replies.

I've got all the mprime files on the stick now and have tried it with my submersive cooling machine. There;s one
stick which has tinycore on it and this one with the mprime files on.

I try running mprime when I mount the stick and I get this

./mprime: line 1:syntax error: unexpected word (expecting ")").


The version of mprime I have is the 64bit linux tar,gx version currently on the gimps site.

The processor this machine has is an AMD 64 Dual Core 3800+

Any ideas why I can't run mprime?
wildrabbitt is offline   Reply With Quote
Old 2015-11-22, 22:37   #6
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·3·1,567 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
Any ideas why I can't run mprime?
When you run "./mprime -h" what happens?
chalsall is online now   Reply With Quote
Old 2015-11-22, 22:41   #7
bgbeuning
 
Dec 2014

22×32×7 Posts
Default

Try "file mprime" to see if it thinks mprime is an executable.
bgbeuning is offline   Reply With Quote
Old 2015-11-22, 22:47   #8
wildrabbitt
 
Jul 2014

44710 Posts
Default

When I run ./mprime -h I get the same error as before.

When I run file mprime

I get

sh: file: not found
wildrabbitt is offline   Reply With Quote
Old 2015-11-22, 22:52   #9
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×3×1,567 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
When I run ./mprime -h I get the same error as before.

When I run file mprime

I get

sh: file: not found
Then either you are not in the correct directory, or your system is inappropriate.

Or both.
chalsall is online now   Reply With Quote
Old 2015-11-23, 00:00   #10
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3·11·107 Posts
Default

If TinyCore is 32-bit then you need a 32-bit mprime.

64-bit TinyCore here

Last fiddled with by paulunderwood on 2015-11-23 at 00:11
paulunderwood is offline   Reply With Quote
Old 2015-11-23, 04:49   #11
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

22×2,287 Posts
Default

Quote:
Originally Posted by Batalov View Post
The '$' sign might be the culprit.
https://xkcd.com/327/
LaurV is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting log files or other text files Xyzzy Forum Feedback 3 2018-12-30 19:37
Is copying my complete "p95v285" folder to my new pc enough to continue? RienS Information & Answers 1 2014-11-14 21:47
Ubuntu storm5510 Linux 24 2013-11-08 20:59
Ubuntu 9.10 henryzz Linux 11 2010-01-29 21:31
Copying Latex No Longer Works? jinydu Information & Answers 2 2009-03-16 02:39

All times are UTC. The time now is 16:42.

Wed Jan 20 16:42:46 UTC 2021 up 48 days, 12:54, 0 users, load averages: 2.17, 2.55, 2.76

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.