How to copy/delete file

hi,
i need to come out a program, which can copy/delete file from unix directory A to directory B, on the application server.
does any one have any idea how am i going to code the abap program for this?
thanks

> i need to come out a program, which can copy/delete file from unix directory A to directory B, on the application server.
>
i am assuming that your Application server is Unix.
unixcommand cp is used to copy the a file from one directory to another.
cp /dir/file1 /dir2/file2
the above command will copy the file1 of dir1 to file2 of dir2.
for delete use the command rm,
rm /dir/fiel1
the above command will remove the file1 from directory dir.
REPORT ZUNIX line-size 400
                no standard page heading.
parameters : unixcom like   rlgrap-filename.  
data: begin of tabl occurs 500,
        line(400),
      end of tabl.
data: lines type i.
start-of-selection.
  refresh tabl.
  call 'SYSTEM' id 'COMMAND' field unixcom
                id 'TAB'     field tabl[].
"if any error or any thing you get in the tabl
"just check the tabl once after the finishing

Similar Messages

  • How do I delete files permanently from a usb flash key? On my mac (Yosemite 10.10) it's telling me the files are deleted, however on plugging key into television they're still there

    I've a problem I've never come across before and it's how to permanently delete files on a usb flash key? I've just migrated from using Windows for 15 years onto Apple iMac and had been deleting files easily and permanently from the key on Windows without any hassle and thought I'd done the same on my iMac but seemingly they're still there as the tele is showing them when key is plugged in, BUT they can not be seen on iMac. I wondered why the key wouldn't take anymore files after, what I thought was, deletion and now I know why-imac hasn't deleted them!
    I've actually gone into Disk Utility and formatted the key in it's usual FAT32 format to finally delete the files.  Anyone any ideas as to why this happens and how to solve this please?
    Many thanks
    puretoon

    In addition to what Drew wrote, remember the Mac has a data fork and a resource fork.
    Here is an old thread but a nice recap by Dr. Smoke
    ._Files
    Note that the ._file files you note are the resource forks of Mac files you copied to the drive from your Mac, and these are only visible when you use the Flash drive on a PC. These are normal and indicate the Flash drive is already formatted for Windows.
    When you copy or save a file from a Mac OS X system to a Windows shared volume or a Windows-formatted disk, the Mac creates two files: the data fork (xxx) and the resource fork (._xxx). This is called Apple Double Format and is normal. The resource fork contains additional data about the file that is exclusive to the Mac that cannot be saved otherwise on Windows-formatted disks. This is new with Mac OS X, as documented in Mac OS X: Apple Double Format Creates File Name With the Prefix '._'.
    The resource fork files (._xxx) are necessary if you want to copy the file back to the Mac and retain the metadata. The resource forks of files are invisible when they are used on the Mac: the Mac OS Extended file system (aka HFS Plus or HFS+) uses forked files, with a file having both data and resource forks.
    You can delete the resource forks on the Windows disk if and only if you don't care about losing the resource fork information should you copy them back to the Mac, such as comments, image preview icon, etc. Some Mac applications use the resource fork data, so deleting the resource fork can be problematic if you copy the file back to the Mac. Likewise moving the file while not also moving its associated resource fork when using the data on a PC can result in problems when using some files again on the Mac.
    You can't prevent the resource forks from being created if you copy or save files from the Mac to the Windows share or Windows-formatted disk via Finder.

  • Upon start up I get a start up disk full message and to delete files, now I only get a a blue screen on start up. How to I get past the blue screen and how do I delete files?

    Upon start up I get a "start up disk full message, delete files". Now on startup I only get a blue screen. How do I get past the blue screen and how do I delete files.

    That;s really not enough free space... you can use a tools such as OmniDiskSweeper to find out where your large files reside and begin pruning (or copying to an external if they're files that you want to keep).
    One thing is certain - if you're going to continue your current usage you're certainly going to need to install a larger boot drive.
    Clinton

  • How could I delete files with name string with "TAL" and older than 05.05.

    How could I delete files with name string with "TAL" and older than 05.05.2009 on unix

    Our ECC Ides system today was not responsible. For first time 17 users were working on the systtem (IWN2008/SQL2005 based). Before the people were maximally 5.
    The server is done by making a homogeneous system copy from an blade machine(now it is an VIrTUAL)
    There was enaught disk space. However I checked Wokload 03sdn transaction) inn system. and found out that at that time of restarting(I had to restart system 3 times to get logged on the system and even then it was almost unresponsive.
    I can found in there top abap."Login_Pw", "SESSION_MANAGER", "?". (BAtch), "ADMSBUF, >DEleyed Function call, RSPOWPOO""RSWWclear", ""VA01", "SAPMHHTP  "Buf  Sync" >DDLOC CLEANUP)""rsbtctE"
    What can I do?
    ¸
    Who could interfer SAP_CCMS_MONI_BATCH_DPSAP_CCMS_MONI_BATCH_DP
    the 2 main users under users profile were ZUGTIN running and SAPSYS( running many system jobs)
    How to approach the problem

  • My start up disk is full.  How do I delete files from this?

    My air is saying my start up disk is full.  How do I delete files from it?  Is there a specific location I'm supposed to delete from, or is it just general files from everywhere--email, etc.

    For information about the Other category in the Storage display, see this support article. If the Storage display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • How do i delete files from adobe reader?

    How do I delete files that I do not want to view again from adobe reader?

    You want to delete the actual PDF files, or just the entries in the Recent Documents list?
    If it's the files, delete them from where they are stored on your local disk.
    If it's the Recent Documents list, that depends on your operating system.

  • Where can I find the Start up disk and how can I delete file from it.

    where can I find the Start up disk on theMac Book Air?
    How can I delete files from it?

    The startup disk is the internal SSD in your MBA.  You may delete files by draging the file  to Trash (or clicking on them and then execute COMMAND+Delete).  Then empty Trash.
    Ciao.

  • How do you delete file from time machine back up?

    How do you delete file from time machine back up?

    This from Apple KB Article  If Time Machine is not in your Dock, you can enter Time Machine from the Menu Bar or System Preferences.
    Deleting data from a Time Machine backup
    To delete all backups of one or more items from a Time Machine backup, follow these steps:
    Click the Time Machine icon on your Dock to enter the Time Machine restore interface.
    Click on the item you would like to delete. Command-click to select multiple items.
    Control-click (or right click) the highlighted item(s) and select "Delete All Backups of..." from the contextual menu, or select "Delete all backups of..." from the Action Item menu.
    Authenticate with an administrator password when prompted.

  • How do I delete files on the startup disc on a macbook pro

    How do i delete files on the startup dics to make room to download itunes and such on my macbook pro

    Move items you don't need on it, such as the iTunes and iPhoto libraries, to another drive, verify they work in the new location, and then delete them from the internal drive. If you don't need something at all, drag it to the Trash and empty it.
    (92026)

  • Does anyone know how to copy my files from my ipod to a different computer?

    Does anyone know how to copy my files from my ipod to a different computer? I tried to do it, but all that it did was erase my files. What i want to to is use my ipod to transfer my files to another computer (which has itunes as well) PLEASE help!

    You will need to enable your iPod for disk use. Then, you should see your iPod in "My Computer" and you can open up your iPod's folder there and drag the files into it. You can store the files on the iPod, then connect it to the other computer and drag-and-drop them from the iPod into the designated directory in that computer. Make sure individual files are not larger than 4 GB.

  • My mac book startup disk is full and when I start it, it give me a blank blue screen. I have tried the shift and I started in safe mode, and it gave me the stars screen. How can I delete files to fix the problem

    My mac book startup disk is full and when I start it, it give me a blank blue screen. I have tried the shift upon start
    and I started in safe mode, and it gave me the stars screen. How can I delete files to fix the problem

    1. Start up in Safe Mode.
        http://support.apple.com/kb/PH11212
    2. Empty Trash.
        http://support.apple.com/kb/PH10677
    3. Delete "Recovered Messages", if any.
        Hold the option key down and click "Go" menu in the Finder menu bar.
        Select "Library" from the dropdown.
        Library > Mail > V2 > Mailboxes
        Delete "Recovered Messages", if any.
        Empty Trash. Restart.
    4. Delete old iOS Devices Backup.
        iTunes > Preferences > Devices
        Highlight the old Backups , press “Delete Backup” and then “OK”.
        http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
    5. Re-index Macintosh HD
       System Preferences > Spotlight > Privacy
       http://support.apple.com/kb/ht2409

  • How do I delete files on my iPod second gen?  This is a NEW problem I have only had with the latest version of iTunes.  I have not changed libraries.

    How do I delete files on my iPod second gen?  This is a NEW problem I have only had with the latest version of iTunes.  I have not changed libraries.  All files are grayed out.  I have already read related posts in the iTunes community.

    Thanks but I had already read this, and it was no help at all.  Under the Summary tab, "Options", there is no check-box to manually manage my stuff.  I suspect this is because it is a 2nd gen iPod, with ONLY manual management.  The only way to delete my stuff seems to be to reset the entire device.
    I like to listen to podcasts.  What is particularly frustrating is that the 4th gen shuffle CANNOT play podcasts, but ONLY music, which I discovered after a lot of research and multiple visits to an Apple store.  So I have to resort to an older version of the shuffle to play podcasts  And now with the latest version of iTunes there seems to be no way to delete any podcasts on the older version.  Apple just makes it harder and harder for us podcast-lovers, driving us away from Apple -- driving me away from the entire brand and from ALL Apple devices, not just iPod.

  • I have recently changed to an iMac from a Windows PC. How do I delete files and format the memory card in my helmet cam?

    I have recently changed to an iMac from a Windows PC. How do I delete files and reformat the memory card in my helmetcam?

    If you return the memory card to the helmetcam, it may choose to reformat it before use; back to some FAT-16 or FAT-32 format many of these third-party cards and cameras use. Unless you were going to use it for Mac OS X and format it with HFS+ or in a partition map for Mac data, etc.
    If not, the easiest way to reformat the card may have been in the camera itself. I've formatted several kinds of camera cards, drives, USB flash drive, and others. The means varies with the intended purpose. Sometimes the default is the best; since it is platform neutral if the device is seen by both players.
    Good luck & happy computing!

  • How to copy pdf files from computer to ipad

    how to copy pdf files from computer to ipad

    You can PDFs to the iPad, but first you need one or more apps on the iPad that supports PDFs - unlike a 'normal' computer the iPad doesn't have a file system, and everything on it has to be associated with an app.
    Options include free apps such as Apple's iBooks app and also Adobe Reader - and paid-for apps such as GoodReader (which also supports read-only of other documents types).
    For iBooks you can first add the PDFs to your computer's iTunes via File > Add To Library, and you can then sync them by selecting the iPad on the left-hand sidebar of your computer's iTunes (on iTunes 11 you can enable the sidebar via option-command-S on a Mac, control-S on a PC) and using the Books tab on the right-hand side to select and sync them.
    For Adobe Reader adnd GoodReader you can use the file sharing on the Apps tab on the right-hand side to copy them over : http://support.apple.com/kb/ht4094

  • I can't login, keep geting "Your  Startup Disk is Full" and asking me to delete file. if I cant login how can I delete files? Please help

    I Keep getting "your startup disk is full" ..... "You need to make more space available on your startup disk by deleting file..."  If I can't have an acess, how can I delete files. Please help..

    That means the hard drive of your computer is full, and you don't have enough free space on your computer, to do what you are trying to do. 
    You need to clear up space on your computer. 
    If you hard drive is full, check the following places to ensure they are not holding unwanted data.
    - your trash can in the dock
    - if you use iPhoto, your trash in iPhoto - launch iPhoto, and select trash in the left hand column.  iPhoto has it's own trash, and is often overlooked
    - your download folder - finder / home user / downloads - every time you download something, it stores it here. This is often overlooked as well
    - do you have more than one user on the computer?  If you do, ensure they are needed.  If not, delete them, and the contents of their home folders
    If you hard drive is very full, you may want to consider the following:
    - putting in a newer larger hard drive - (call you local apple store for prices on this)
    - deleting data off your computer
    - moving data to an external drive - (iPhoto Libraries, iTunes Libraries or iMovie events, as they are the biggest space hogs)

Maybe you are looking for

  • How can I get my voice memos off of my iPhone?

    I have a new iPhone and took some pictures and recorded a few voice memos.  I would like to save these before I restore my iPhone to the back up I have on my computer.  I was able to import the photos into iPhoto, but I am not sure how to import the

  • How to change Flex Application frame rate at runtime

    hello, i have Flex application that need to change the Frame Rate at runtime. when i am changing it by using the slider component, here the code: private function onChangeSlider(e:Event):void frameRate = sliderFR.value; trace(frameRate); <mx:HSlider

  • DirectInput and joystick in PDF

    Hi, All ! Is there a way to use Windows DirectX DirectInput module and joystick in PDF ? Regards, Yuri Kovalev

  • Text can't be edited after xml import

    I export a subtitle timeline using xml version 4 (FCP 6.05), then import on a machine running FCP 7 (don't know which version right now). After import impossible to edit the text, it changes in the Viewer but not on the timeline. I've read about issu

  • Re: can I buy credit for someone else? (I want pay...

    hello; first post... please be gentle my question is similar to the first scenario. I want to purchase credit for my girlfriend. I understand the 2-accounts-on-the-same-card issue. what if I used a different credit card or Paypal ? payments would be