LinuxQuestions.org
Review your favorite Linux distribution.
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 11-12-2012, 12:28 PM   #1
kangjoo.lee
LQ Newbie
 
Registered: Nov 2012
Posts: 5

Rep: Reputation: Disabled
"system" command in matlab failed


I'm running a Matlab code in Linux.
At the line where it copies a template file, which is stored in other user's folder,
it is paused. My access to this file is possible, -rw-r--r--.

In the matlab code,
[succ,msg] = system(cat(2,'cp ',file_name,' ',file_tmp_gz));
this is the line where it is paused.

The weird thing is that, when I just try
system(cat(2,'cp ',file_name,' ',file_tmp_gz))
this is working,

or, when I type cp file_name in terminal,
it is also working.

The same matlab code is working in other user's computer(this is not the owner of the template.), but not in mine.

What would be a possible reason?

Thank you

Last edited by kangjoo.lee; 11-12-2012 at 12:52 PM.
 
Old 11-13-2012, 05:05 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Thread is marked as closed and no solution is present.

@OP: Can you provide the solution so that others can also benefit from it?

Anyway: Thread taken of the zero-reply list.
 
Old 11-13-2012, 04:11 PM   #3
kangjoo.lee
LQ Newbie
 
Registered: Nov 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I revised my configuration file, /cshrc in my /home directory.

alias cp 'cp -i'

==> alias cp 'cp -f'
 
  


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
[SOLVED] About "rootstock" make ubuntu min file system error: "I: Failed to retrieve InRelease luolian_green Ubuntu 1 08-27-2012 04:15 PM
Centos Server Failed @ Bootup: Missing "/sbin/blkid" & "fsck" command not found beagle7 Linux - Newbie 4 08-24-2012 02:33 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
list file system linux supports "please give the command or system call" varun_shrivastava Linux - General 4 01-09-2007 08:28 AM
Evolution: "IMAP command failed: Overlapped I/O operation is in progress." donbellioni Linux - Software 1 09-10-2004 02:22 PM


All times are GMT -5. The time now is 10:13 AM.

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