Dear Dr Stephen, The is what I have been doing so far: sh: ./bet_vol: Permission denied sh-3.2$ login login: neuro Password: Last login: Fri Jul 25 17:54:30 on ttys000 [neuros-iMac-2:~] neuro% pwd /Users/neuro [neuros-iMac-2:~] neuro% Why is it that permission is denied? I have already done the scripting in emacs but when I try to run the script permission is denied. What does this mean? Thanks! *Best regards,* *Isobel French* *Academic Coordinator and Research Officer* *Division of Neurosurgery* *Department of Surgery* *Faculty of Medicine* *University of Malaya* *016-7937605* *03-79493138* On Thu, Jul 24, 2014 at 4:31 PM, Isobel French <[log in to unmask]> wrote: > Dear Dr Stephen, > > Yes I am going back to the section in the basic unix tutorial on emacs. I > will try first what you have advised me and post more questions later. > Thanks! > > > *Best regards,* > > *Isobel French* > *Academic Coordinator and Research Officer* > *Division of Neurosurgery* > *Department of Surgery* > *Faculty of Medicine* > *University of Malaya* > *016-7937605* > *03-79493138* > > > On Thu, Jul 24, 2014 at 4:27 PM, Stephen Smith <[log in to unmask]> > wrote: > >> Hi - that's almost right, except: >> >> - in the case of most editors (eg emacs), starting the editor with a new >> filename such as >> emacs my_new_script >> will create that file for you (in this case the script file >> my_new_script). So you don't need to "create" the file before opening the >> editor. >> >> - then once you have created the file and exited the editor, you can then >> try running the script in the terminal. >> >> I think at this point you would probably benefit from going back to the >> basic unix tutorial >> http://fsl.fmrib.ox.ac.uk/fslcourse/unix_intro/ >> and going through it in fine detail. >> >> Cheers, Steve. >> >> >> >> >> >> >> On 24 Jul 2014, at 09:22, Isobel French <[log in to unmask]> wrote: >> >> Dear Dr Stephen, >> >> Does this mean that I have to create a file with the name that I want >> first, and then open it in emacs to edit it, before going back to the file >> in terminal again? Thanks! >> >> >> *Best regards,* >> >> *Isobel French* >> *Academic Coordinator and Research Officer* >> *Division of Neurosurgery* >> *Department of Surgery* >> *Faculty of Medicine* >> *University of Malaya* >> *016-7937605* >> *03-79493138* >> >> >> On Thu, Jul 24, 2014 at 4:18 PM, Stephen Smith <[log in to unmask]> >> wrote: >> >>> Hi - no, that's not what that page is telling you to do. You should be: >>> >>> - create and edit a new script, for example with name "filename", for >>> example by: >>> emacs filename >>> >>> - then in this file put commands such as the 3 lines after the "- >>> Example" paragraph heading, and then save the file and exit the editor (eg >>> emacs). >>> >>> - then run the chmod command to make the script file "filename" >>> executable >>> >>> - then to run it, do something like, in the terminal, ./filename >>> >>> Cheers. >>> >>> >>> >>> On 24 Jul 2014, at 09:09, Isobel French <[log in to unmask]> wrote: >>> >>> Dear Dr Stephen, >>> >>> tq for your advice. Yes I am. However i did not execute all the commands >>> as I am afraid I might do something I will not be able to reverse in the >>> system. Right now I am going through this: >>> >>> http://fsl.fmrib.ox.ac.uk/fslcourse/lectures/scripting/s_0020.htm >>> >>> When I type: >>> >>> sh-3.2$ #!/bin/sh >>> sh-3.2$ chmod a+x filename >>> chmod: filename: No such file or directory >>> >>> What does this mean? Thanks! >>> >>> >>> *Best regards,* >>> >>> *Isobel French* >>> *Academic Coordinator and Research Officer* >>> *Division of Neurosurgery* >>> *Department of Surgery* >>> *Faculty of Medicine* >>> *University of Malaya* >>> *016-7937605* >>> *03-79493138* >>> >>> >>> On Thu, Jul 24, 2014 at 2:32 PM, Stephen Smith <[log in to unmask]> >>> wrote: >>> >>>> >>>> Hi >>>> >>>> >>>> On 24 Jul 2014, at 04:15, Isobel French <[log in to unmask]> wrote: >>>> >>>> HI Dr Stephen, >>>> >>>> So for all the exercises in the unix tutorial I should switch to either >>>> only "bash" or "sh"? is that why some commands are not working? By the way >>>> the system I'm using is OS X version 10.8.5 on the Mac. Tqvm! >>>> >>>> >>>> Correct. I would use "bash" if possible. >>>> >>>> Btw - I assume that you're going through the basic unix tutorial >>>> http://fsl.fmrib.ox.ac.uk/fslcourse/unix_intro/ >>>> >>>> first? >>>> Cheers. >>>> >>>> >>>> >>>> >>>> >>>> *Best regards,* >>>> >>>> *Isobel French* >>>> *Academic Coordinator and Research Officer* >>>> *Division of Neurosurgery* >>>> *Department of Surgery* >>>> *Faculty of Medicine* >>>> *University of Malaya* >>>> *016-7937605* >>>> *03-79493138* >>>> >>>> >>>> On Wed, Jul 23, 2014 at 3:14 PM, Stephen Smith <[log in to unmask]> >>>> wrote: >>>> >>>>> Hi - I'm guessing that you are not using the most common "shell", >>>>> which I would recommend to be "bash" or "sh". >>>>> >>>>> It looks like you are currently using csh or tcsh, which is less >>>>> common, and at this stage I would recommend switching to bash. I'm not >>>>> sure whether you're on Mac or linux, so I'm not quite sure how you can >>>>> easily change this... do you have a local system administrator who can >>>>> change this for you? >>>>> >>>>> Cheers. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On 23 Jul 2014, at 06:31, Isobel French <[log in to unmask]> wrote: >>>>> >>>>> DEar all, >>>>> >>>>> When i type in the command EDITOR=emacs;export EDITOR, this is the >>>>> response i get: >>>>> >>>>> neuros-iMac-2:~] neuro% EDITOR=emacs;export EDITOR >>>>> EDITOR=emacs: Command not found. >>>>> export: Command not found. >>>>> >>>>> Why is this happening? Thanks. >>>>> >>>>> >>>>> >>>>> *Best regards,* >>>>> >>>>> *Isobel French* >>>>> *Academic Coordinator and Research Officer* >>>>> *Division of Neurosurgery* >>>>> *Department of Surgery* >>>>> *Faculty of Medicine* >>>>> *University of Malaya* >>>>> *016-7937605* >>>>> *03-79493138* >>>>> >>>>> >>>>> On Fri, Jul 18, 2014 at 6:03 PM, 张凯yahoo < >>>>> [log in to unmask]> wrote: >>>>> >>>>>> Dear Isobel, >>>>>> >>>>>> .DS_Store is short for "Desktop Services Store" in Mac OS. If you >>>>>> want to delete them, just open "Terminal" (in the Applications/Utilities), >>>>>> and then type in >>>>>> "sudo find / -name “.DS_Store” -depth -exec rm {} \;", next input >>>>>> your administrator password, finally all similar kinds of files effaced. >>>>>> Have fun! >>>>>> >>>>>> Best, >>>>>> Kai >>>>>> >>>>>> ____________________ >>>>>> >>>>>> Kai Zhang >>>>>> >>>>>> >>>>>> PhD student >>>>>> Cluster Languages of Emotion >>>>>> Free University of Berlin >>>>>> Thielallee 38, 14195 Berlin >>>>>> Mobile:+49(0)17644403051 >>>>>> E-mail:[log in to unmask] >>>>>> >>>>>> ____________________ >>>>>> >>>>>> Kai Zhang >>>>>> >>>>>> >>>>>> PhD student >>>>>> Cluster Languages of Emotion >>>>>> Free University of Berlin >>>>>> Thielallee 38, 14195 Berlin, Germany >>>>>> Mobile:+49(0)17644403051 >>>>>> E-mail: [log in to unmask] >>>>>> >>>>>> >>>>>> 2014-07-18 11:03 GMT+02:00 Isobel French <[log in to unmask]>: >>>>>> >>>>>> Dear all, >>>>>>> >>>>>>> I was going onto the basic unix tutorial and was playing around with >>>>>>> emcas. Before doing that I created a directory named 'Belle" so that i >>>>>>> could play around with emacs. However when I tried removing the directory >>>>>>> this i the response I had: >>>>>>> >>>>>>> [neuros-iMac-2:~] neuro% cd Belle >>>>>>> [neuros-iMac-2:~/Belle] neuro% ls >>>>>>> [neuros-iMac-2:~/Belle] neuro% emacs >>>>>>> [neuros-iMac-2:~/Belle] neuro% cd .. >>>>>>> [neuros-iMac-2:~] neuro% rmdir Belle >>>>>>> [neuros-iMac-2:~] neuro% mkdir Belle >>>>>>> [neuros-iMac-2:~] neuro% cd Belle >>>>>>> [neuros-iMac-2:~/Belle] neuro% emacs Belle >>>>>>> [neuros-iMac-2:~/Belle] neuro% emacs Belle >>>>>>> [neuros-iMac-2:~/Belle] neuro% rmdir Belle >>>>>>> rmdir: Belle: No such file or directory >>>>>>> [neuros-iMac-2:~/Belle] neuro% cd .. >>>>>>> [neuros-iMac-2:~] neuro% rmdir Belle >>>>>>> rmdir: Belle: Directory not empty >>>>>>> [neuros-iMac-2:~] neuro% cd Belle >>>>>>> [neuros-iMac-2:~/Belle] neuro% ls >>>>>>> #Belle# #ITF# >>>>>>> [neuros-iMac-2:~/Belle] neuro% rmdir ITF >>>>>>> rmdir: ITF: No such file or directory >>>>>>> [neuros-iMac-2:~/Belle] neuro% cd .. >>>>>>> [neuros-iMac-2:~] neuro% rmdir Belle >>>>>>> rmdir: Belle: Directory not empty >>>>>>> [neuros-iMac-2:~] neuro% rmdir Belle >>>>>>> rmdir: Belle: Directory not empty >>>>>>> [neuros-iMac-2:~] neuro% rmdir Belle >>>>>>> rmdir: Belle: Directory not empty >>>>>>> [neuros-iMac-2:~] neuro% cd Belle >>>>>>> [neuros-iMac-2:~/Belle] neuro% ls >>>>>>> #Belle# #ITF# >>>>>>> [neuros-iMac-2:~/Belle] neuro% ls -la >>>>>>> total 8 >>>>>>> -rw-r--r-- 1 neuro staff 0 Jul 18 16:37 #Belle# >>>>>>> -rw-r--r-- 1 neuro staff 28 Jul 18 16:43 #ITF# >>>>>>> drwxr-xr-x 4 neuro staff 136 Jul 18 16:52 . >>>>>>> drwxrw-r--+ 56 neuro staff 1904 Jul 18 16:02 .. >>>>>>> [neuros-iMac-2:~/Belle] neuro% rmdir #ITF# >>>>>>> rmdir: #ITF#: Not a directory >>>>>>> [neuros-iMac-2:~/Belle] neuro% >>>>>>> >>>>>>> There is a hidden file in it as well name '.DS_Store" >>>>>>> >>>>>>> Can somebody let me know what I have done and how do I rectify it? >>>>>>> Also, how will I be able to remove the directory 'Belle' completely? >>>>>>> Thanks!! >>>>>>> >>>>>>> *Best regards,* >>>>>>> >>>>>>> *Isobel French* >>>>>>> *Academic Coordinator and Research Officer* >>>>>>> *Division of Neurosurgery* >>>>>>> *Department of Surgery* >>>>>>> *Faculty of Medicine* >>>>>>> *University of Malaya* >>>>>>> *016-7937605* >>>>>>> *03-79493138 <03-79493138>* >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> --------------------------------------------------------------------------- >>>>> Stephen M. Smith, Professor of Biomedical Engineering >>>>> Associate Director, Oxford University FMRIB Centre >>>>> >>>>> FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK >>>>> +44 (0) 1865 222726 (fax 222717) >>>>> [log in to unmask] http://www.fmrib.ox.ac.uk/~steve >>>>> >>>>> --------------------------------------------------------------------------- >>>>> >>>>> Stop the cultural destruction of Tibet <http://smithinks.net/> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> --------------------------------------------------------------------------- >>>> Stephen M. Smith, Professor of Biomedical Engineering >>>> Associate Director, Oxford University FMRIB Centre >>>> >>>> FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK >>>> +44 (0) 1865 222726 (fax 222717) >>>> [log in to unmask] http://www.fmrib.ox.ac.uk/~steve >>>> >>>> --------------------------------------------------------------------------- >>>> >>>> Stop the cultural destruction of Tibet <http://smithinks.net/> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> --------------------------------------------------------------------------- >>> Stephen M. Smith, Professor of Biomedical Engineering >>> Associate Director, Oxford University FMRIB Centre >>> >>> FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK >>> +44 (0) 1865 222726 (fax 222717) >>> [log in to unmask] http://www.fmrib.ox.ac.uk/~steve >>> >>> --------------------------------------------------------------------------- >>> >>> Stop the cultural destruction of Tibet <http://smithinks.net/> >>> >>> >>> >>> >>> >> >> >> >> --------------------------------------------------------------------------- >> Stephen M. Smith, Professor of Biomedical Engineering >> Associate Director, Oxford University FMRIB Centre >> >> FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK >> +44 (0) 1865 222726 (fax 222717) >> [log in to unmask] http://www.fmrib.ox.ac.uk/~steve >> >> --------------------------------------------------------------------------- >> >> Stop the cultural destruction of Tibet <http://smithinks.net> >> >> >> >> >> >