Shell Script- To FTP the latest file with the date stamp

I have a Solaris 10 based system, where it generate some application files (multiple) in XML format and the file name comprises of the current date.
File Format is as follows;
CX-FIL-20070624000000-2-8452536d-000133.xml
Where 20070624 repesents the curent date of the file
I want to FTP these files to another server (Solaris 10 based Sun Machine) by comparing the file name with the current date.
Please let me know how I can do this by using a shell script.

Assuming you want to ftp the files with today's datestamp, you could match the files you want like so:
CX-FIL-`/bin/date +"%Y%m%d"`*
Use that in your script to generate the file list to be transferred...
-Rob

Similar Messages

  • Where does Lightroom put HDR in the grid view? Is there anyway to have Lightroom stack the HDR file with the source files?

    I can't decipher where (and why) the program is putting the HDR image in the grid. I stack all of my HDR source images so they are easy to track and manage. Other apps/plugins allow you to stack resulting images with their source image. That would be great if there's a way to set that in LR preferences.

    Thanks, but this doesn't really answer the question about stacking the HDR file with the source files. Yes, it does put the file in the same folder, however many of my folders have 100s of images (that often look similar) and as far as I can tell, LR places them randomly in the sort order. It doesn't appear to put them at the beginning or end of the sort (usually by date), but somewhere randomly in the middle. Even if it could be made clear what method it is using to sort them, that would help locate one file among hundreds.
    Ideally, however it should allow you to stack with the stacked source files. Is there anyway to do this? If not, is it a feature that could be requested?

  • The same file with the same name need to call two RFC's with the sequence

    i have to pick up the same file with the same name  and call the two RFC in sequence
    scenario.i have xxx.txt file.file should be proces first calling the first rfc .
    I created two different communication channels
    for the first sender file communication channel i should not use processing mode archive,delete,Test
    and only option is set read only.
    if i set the read only the file ..then i can not use the same file again to call second RFC.
    how we can acheive the above scenario?
    Regards,
    Hyma

    If you want to file need to be picked up twice in same folder, it seems it is hard for PI adapter to achieve it, you should look for API's that control adapters availibility.
    But if you have different folder, then it make your scenario simpler since you can process first time, then output to another folder, configure another adapter to pick up from different folder.
    Regards
    Liang

  • I downloaded CS6 Red Plug-In and added to Package Contents, replaced the current files with the new without backing up, now my RED footage thumbnails and color-correction don't WORK! How do I get my old importerRed file back!!?? HELP!

    I downloaded CS6 Red Plug-In and added to Package Contents, replaced the current files with the new without backing up, now my RED footage thumbnails and color-correction don't WORK! How do I get my old importerRed file back!!?? HELP!

    Try asking in the Premiere Pro  forum seems to be an Adobe Lab for Premiere Pro

  • Connect the music file with the artwork file post-computer-crash?

    I want to retrieve artwork after restoring my computer?
    So my computer (where itunes app data was stored) and my external hardrive (where my itunes library was stored) crashed, but luckily I had my itunes library was stored on dropbox so I have that uploading to my revived computer!
    I have access to all my "old computer's" files (via a mounted image file that looks just like an external drive H: )
    The "old computer" itunes used my dropbox folder for the library (J:work\Dropbox\Allen's Transfer Folder\iTunes)
    my "New comuter" uses a local folder but the contents are exactly the same (C:\Companies\Dropbox\Allen's Transfer Folder\iTunes)
    How can I get the artwork data from my "old computer" onto my "new computer" so that itunes will connect the music file with the artwork file?
    is there a data file and will they automatically sync to the artwork if they are in different locations?
    Thank you for your help, Allen

    pfanzier wrote:
    … is there any reason i shouldn't delete the artwork folder?
    All of my music is from CDs, so all of my cover art are scanned images that I added to the music files in iTunes. My Album Artwork folder is heavily populated nonetheless. Thus, it stands to reason that if you delete the folder, just like every other default item in your iTunes folder it will be recreated when you launch iTunes. If I recall correctly, that folder also holds the data files for building your CoverFlow.
    pfanzier wrote:
    itunes only demarcates songs whose files are missing with an exclamation point after i click on the song. otherwise everything appears as normal. if i quit itunes and reopen it, nothing is marked with the exclamation point until i click on it.
    I personally have never had an issue with missing song links, but based on what I had read on the Macworld forums over the years, when links are lost, people start seeing /!\ next to several tracks in their iTunes library. Of course, most of the instances that I have read about have been after iTunes updates so perhaps it is during the library updating after a software update that causes the automatic detection of broken links. Otherwise, it does make sense that iTunes would not check a link until the user selects an unlinked song, because iTunes does not, and should not, scan your entire library for no apparent reason.

  • Can iTunes convert a file and replace the old file with the new one?

    I am trying to convert my wav files to Apple Lossless to save some space. How can I convert the files and make them replace the old files? Right now it just converts new files so that I end up with two files. I have thousands I want to convert and just replace the old ones.
    I have an external program that will do it for me, however if I go that route then when my ITunes files are converted to lossless files I need to re-link the files as they show up with the ! showing they are missing. That would mean manually re-linking every song, which would take forever unless there is a way to mass re-link all the files.

    iTunes does not see the newly created files as the same file because they are not the same file.  They are new, different files.  If you have a track that is 1234.wav and you create 1234.mp3 it simply isn't the same file and you can't trick iTunes into thinking it is.  iTunes will handle it as a brand new file.
    Check Dougscripts web site for scripts which help modifying tag data.  However, I suspect you won't find any doing exactly what you want doing.  Some tag data are only accessible by iTunes itself.
    As for playlists, there's things you can try though they may be more effort than they are worth.  For example, you could add a special code for each playlist to some element of a tag (e.g., grouping).  Convert the file, then make a smart playlist selecting for the code you added to the group of tracks in the old playlist.  If you have hundreds of playlists with a dozen tracks each this will be a grand nuisance.  If it is a handful of playlists with hundreds of tracks each this might be worth it.
    Another way to preserve playlists would be to edit the .xml copy of the iTunes library file, replacing ".wav" with ".mp3" or whatever format you are using.  However, this won't help with play counts because that is only stored in the .itl copy of the file which you cannot edit.

  • I can't update to the latest version with the orange Firefox button.

    On public computers, I've used a version of Firefox that features an orange Firefox button that replaces the menu bar. On my home computer, even though I've used the "About Firefox" link to update the software, I still do not have the orange Firefox button. I am currently on version 18.0.1 on my home computer.
    How else can I go about getting the orange Firefox button to replace the menu bar? Thanks.

    It's easier than you imagine:
    View > Toolbars > ''uncheck'' Menu Bar
    Occasionally you might want to access the classic menu bar after that. Tap the Alt key to reveal it.

  • Can't open PDF-Files with the 64Bit Photoshop-Version but with 32Bit Version

    Hello,
    our company use Photoshop in combination with PDF-Files. Normally we can open every of our PDFs with Photoshop.
    But now we have some PDFs that we can't open with the 64Bit version. If we try it the application crashes.
    But we are able to open the same files with the 32Bit version of Photoshop. We assume a bug in the 64Bit Version.
    Please contact me to get the a PDF-Sample-File because i am not allowed to append the file to a public space.
    Regards
    Carsten Evers
    PS: email: [email protected]

    Hi Carsten,
    I'll move this to the PS forums on your behalf for further assistance. 
    Cheers!
    -Sidney

  • Hi I seem have created duplicate preference files With the suffix "lock file". Is this normal? Thanks Geoff

    I just been looking in my preference file folder to throw away the preferences for Final Cut and there seems to be duplications of the preference files with the suffix “lock file". Is this normal in OS 10.7? I look forward to any advice.
    Many thanks Geoff

    I ended up logging an SR on Metalink. Here's the answer I got back:
    ---<snip>---
    Yes, 500 MB is normal for 11.1.0.7.
    First, you are correct, there is a log rotation policy. This is done automatically by Oracle for the Crsd, Ocssd, Evmd logs .
    The default size of the cssd log after which they would be recycled in previous versions was 10MB. This has changed in 11.1.0.7 such that the size after which the logs are recycled is 50MB. This means that customers may see an increase in the CRS_HOME required from 100MB to 500MB. Customers whose home size cannot accommodate this should move the old ocssd.l0* files to another destination. Please do not move the existing ocssd.log file.
    ---<snip>---

  • What is a file with the extension .injb?

    When packaging an InCopy file, a new file appears in the same folder as the .inca file with the extension .injb. What is this? Is it a lock file for the .inca?

    As far as I know .schema files are created when you import/create offline database objects. For example when you use a database adapter in an ESB flow or when creating TopLink mappings. The .schema files store some metadata on the database schema from which the database objects are imported into the JDeveloper projects.

  • When i add a background image to form and it gives me such kind of issues so i have deleted the resource file in the solution explorer and then when i reopened my projectt it again gives errors of missing root element of InvalidResx.file amd of XMl.

    I have already go to properties then resources and try to remove resource option but it was't working.so help me by giving another technique to solve this issue.

    I have already go to properties then resources and try to remove resource option but it was't working.so help me by giving another technique to solve this issue.
    Hello,
    It will be more specific if you could share the screenshot of that error with us.
    In addition, if this issue is mainly related to the BackGroundimage property, you could consider using the following suggestion.
    We could click our project to expand the nodes and click "InitializeComponent()" to navigate to its desiginer code.
    Then check whether there is a line which has " Me.BackgroundImage =", remove that line and then remove the resource file with the following step.
    Project property->Resources->Switch "Files" or "Images" to see where you have setted for that image file, find it and remove it.
    Then save all your changes to see whether it's OK.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • After installing latest update Realplayer recording no longer works, I think Mozila is using a library file with the same name

    After installing the latest update to Firefox onto Vista operating system the record part of real player no longer works, I think Mozila and Real are using a library file with the same name and the Mozila update is overwriting a Realplayer library file.

    I was giong to say, "Help me, Adobe Joe Kenobi", but it looks like you're growing a beard waiting for an answer, too.
    The same thing happened to me today. I trusted the "update" message since it was from Adobe, and apprently did so at my own peril. Now I get the "failed to load Core dll" message with a secondary reference to a memory address.
    Just an observation, but what good are these forums when there are no answers? I see this problem as "Caused by Adobe Update", and would expect them to troublshoot and offer up a remedy. Since you've been waiting over two months with no response, I suppose it's time to trek off wasting more of my precious time to fix their problem. If I find the solution, I'll post it back to you.
    May the Force be with you.
    Mark

  • Latest iTunes no longer plays .0gg files with the Xiph Quicktime fix - any solution?

    Latest iTunes no longer plays .ogg files with the Xiph Quicktime fix - any solution?

    New version (.42) plays ogg files again so Apple have fixed the problem hooray

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • I need to create an action or script to save the file with the name of the selected layer

    I need to create an action or script to save the file with the name of the selected layer (not including the hidden layers, but including those visible).
    How could modify the script: 'Layer Comps To Files.jsx' to get the result?
    Warning: I do not need to export all layers as files.
    Who can help me?
    THX in advance

    Versione in Italiano (Further down the English version)
    NB - Nella versione inglese ho messo tutte le immagini dei menu in italiano.
    Versione per Mac, ma credo sia identico per Windows.
    Spiego passo passo cosa ho fatto:
    - Ho creato un file esempio con tre Livelli, salvato sulla scrivania e ho chiuso il file.
    - Ho aperto il file e selezionato il Livello al centro per iniziare a registrare una azione che ho chiamato: Save with Name of Selected Layer
    - Nuova azione
    - Dare il nome e premere Registra
    Ora salva…
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Ancora una volta Menu --> Livello... --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello --> Ordina --> Dietro
    - Menu --> Livello --> Unisci sotto
    - Menu --> Livello --> Unisci visibili
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello - Nascondi Livello
    - Menu --> Elimina --> Elimina livelli nascosti (press -Yes-)
    - Menu --> Livello --> Nuovo --> Livello... Inserisci questo: 'Move this to the trash' e premi ok
    - Menu --> File --> Script --> Esporta Livelli in File... (Nella finestra che si apre scegliere l’opzione che si desidera, ma togliere il prefisso del nome) e premere -Esegui-
    - Selezionare il pannello Storia cliccare su Elimina premendo -Si- ogni volta che si apre la finestra di dialogo (Ripetere 8 volte questa operazione sino ad arrivare nella storia alla condizione di partenza. Ho visto che è meglio di Ripristina -F12-)
    - Fermare la registrazione.
    A questo punto, mandando in esecuzione questa Azione, ho raggiunto parzialmente l’obiettivo perché i file così creati mantengono, purtroppo, dei prefissi numerici per evitare probabilmente la sovrascrizione di file (credo senza avviso) nel posto dove vengono creati.
    Per ottenere l’obiettivo occorre un nuovo passo ed a proposito di questo riferisco quanto segue:
    ATTENZIONE - L’operazione descritta qui di seguito deve essere fatta su di una copia del file, per cui:
    - Duplicare il file,
    - Spostare l’originale in altra cartella
    - Lavorare sul file duplicato.
    mi riferisco a questo...
    ATTENZIONE - Questa modifica è effettuata a proprio rischio e pericolo ed il sottoscritto non si assume alcuna responsabilità su quanto venga fatto soprattutto da mani inesperte.
    ATTENZIONE - Questa modifica sovrascrive qualsiasi file che abbia nome uguale al layer che viene selezionato più l’estensione del file naturalmente.
    Comunque la modifica è banalissima e a portata di chiunque.
    Procedere così:
    - Chiudere Photoshop
    - Aprire (nel percorso specificato dall’immagine) il file “Export Layers to Files.jsx” (Export Layers To Files.jsx 1.0.0.16) con un editor di testo puro.
    - cercare la stringa (dovrebbe essere in riga 1029)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4);
    fileNameBody += "_" + layerName;
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += layerName;
    - cercare la stringa (dovrebbe essere in riga 1047-46)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4) + "s";
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += "";
    - salvare e uscire.
    - riavviare Photoshop
    - provare l’azione registrata facendo attenzione che il nome del layer non sia identico al nome di un file già presente altrimenti questo verrà sovrascritto.
    Domanda:
    Perché ho creato livelli che poi ho eliminato ecc.
    Risposta:
    Semplice per evitare errori di esecuzione delle azioni nel caso di operazioni con livelli mancanti o altro.
    Semplice... no?
    English version
    Mac version, but I think it's the same for Windows.
    First of all, I'm translating the actions that I made using the Italian version of Photoshop, you look at the position of the menu that I have chosen to do the work with other languages.
    I explain step by step what I did:
    - I created a sample file with three layers, saved to the desktop and I closed the file.
    - I opened the file and select the layer at the center to start recording an action that I called: Save with Name of the Selected Layer
    - New action
    - Give the name and press Save ( I think it is so in English )
    Now save ...
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Once again Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - > Arrange (order) -> Behind
    - Menu -> Layer - > Merge Down
    - Menu -> Layer - > Merge Visible
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - Hide Layer
    - Menu - > Delete - > Delete hidden layers (press -Yes- )
    - Menu -> Layer - > New —> Layer… Enter this: ' Move this to the trash ' and press ok
    - Menu -> File - > Scripts -> Export Layers To Files... (In the window that opens select the option you want, but take away the name prefix) and press - Run -
    - Select the History panel and click Delete (on menu opened) pressing -Yes- every time when open the dialog box (8 times Repeat this step until you get into the story to the starting condition. Not use Restore -F12-).
    - Stop recording.
    At this point, by executing this action, I have reached the goal partly because the files created in this way remain, unfortunately, the numerical prefixes to avoid possibly overwriting of files (I think without notice) in the place where they are created.
    To achieve the goal we need a new step and thinking about this as follows:
    WARNING - The operation described below should be made on a copy of the file, so :
    - Duplicate the file
    - Move the original folder to another
    - Work on the duplicate file.
    WARNING - This modification is performed at your own risk and the undersigned assumes no responsibility on what is done mostly by inexperienced hands.
    WARNING - This change will overwrite any files with the same name as the selected layer plus the file extension of course.
    However, the change is trivial and within reach of anyone.
    Proceed as follows:
    - Close Photoshop
    - Open (in the specified path from the image ) file " Export Layers to Files.jsx " (Export Layers To Files.jsx 1.0.0.16) with a pure text editor.
    - Search for the string (should be in line 1029 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody = + "_" + zeroSuppress (i, 4 ) ;
    fileNameBody + = "_ " + layerName ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = layerName ;
    - Search for the string (should be in line 1047-46 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "_ " + zeroSuppress (i, 4) + "s" ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "";
    - Save and exit.
    - Restart Photoshop
    - Try the recorded Action, making sure that the layer name is not identical to the name of an existing file otherwise it will be overwritten.
    Question:
    Why I created levels which I then deleted etc..
    Answer:
    Simple to avoid errors of execution of the actions in the case of transactions with missing levels and other.
    Simple ... is not it?
    Sorry for my bad English...
    Thanks in advance for any hint.
    --->>> Please think about this... Adobe <<<---

Maybe you are looking for