Batch Rar Jobs In Terminal?

It it possible to create do batch compression with rar through the terminal? I have a bunch of files that I frequently have to compress, and I want to compress them all with a password (The same password for all of them), but it's a pain to keep coming back every 15-20 minutes to set the next file to go.
I remember reading you can create a list file for multiple files going into a single archive, is there a way to do a similar list, since it's just one file per archive the way I'm doing it?

Wow, thanks!
Looks like it's all in working order except one thing. It won't work with filenames that have spaces in them. Normally when I'm manually doing it, I can just put quotes around the filename and it works fine. I tried putting quotes in the test.txt file around the filenames, and when that didn't work I tried putting them around $FILENAME and $ARCHIVENAME, then I tried putting the quotes around the $1 and $1.rar when the variable is defined, and none of them worked. It just creates an archive with the first word of the first file in test.txt, and then tries to archive the entire folder.
Is there a way around this, or do I have to manually change all the spaces to underscores?

Similar Messages

  • Job RDDEXECL terminated with error.

    Hi!
    I am facing with hanging SPAM error in phase IMPORT_PROPER (patch of SAPKB70013 - SAPKB70016).
    The SPAM patch terminates after a few sec. in DDIC activation action.
    I have looked into log file and founded folllowing:
    The job RDDEXECL terminated with error.
    The reason seems to be sysntax error in program "CL_PROXY_SERVICE=======CP".
    Futhermore I could detect that table SI_WD_FIRST_MAIN_SCREEN cannot be activated.
    Can some one help me to solve this problem?
    Of great interest was the following:
    rescedule possibilities of job RDDEEXECL in order to contibue patch
    start of SPAM or tp-commando by ignoring this error
    Any helpful information will be very appreciated!
    Holger

    What do you mean with reimport?
    I tried for almost 100 times to restart the import.

  • 11i Concurrent Jobs not Terminated

    Hi anyone had problems with Terminating Concurrent Requests ? The Manager is showing jobs as terminated but the database procedure is still running.
    This is mainly batchwork PL/SQL procedures.

    yap.. normal..
    you make have to kill the process maually..

  • I am not able to open a batch input job using SM37

    Hi Gurus,
                          I am not able to open a batch input job using SM37. I enter SM37 through a well authorized ID. May be there is a authorization issue or may be not. I check all the check boxes even then it is not possible. Please help me.

    Hi Amit Sharma,
    If I am not wrong, the problem would be because you have not closed the job after creating it.
    You must have used JOB_OPEN, JOB_SUBMIT but not JOB_CLOSE.
    Job_Close is the FM which submits the created job to the background processing system.
    Hope this resolves. If not, paste your code here so that we can have a look
    Thanks,
    Babu Kilari

  • Automated/batch printing job?

    Hi all,
    We are using BW 3.5 and I was wondering if there is a way to set up an automated batch print job. (ie. let's say that once a month a report is generated automatically, is there a way to tell BW to print that report automatically at a given time without user interaction?)
    Thanks for any help you can offer and points will be awarded to helpful replies.

    How would I go about doing that?
    From the research I've done, I believe background printing can be done using BEx Broadcaster in BI 7.0 but not BI 3.5. Is this accurate or is there another way to accomplish this in BI 3.5?
    Thanks.

  • RAR jobs in ready state

    Hi,
    When I schedule batch jobs for user/role full sync. Its going into ready state, kidnly suggest

    Hi Yash,
    check if your background job deamon runs.
    Material to read is here: SAP GRC Access Control 5.3 - Post-Installation - RAR
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60706c35-1f57-2b10-e0bf-82dc433e94f4
    Regards,
    Frank

  • Spool need to create for Batch cancelled job

    Hi Experts,
    How can we display spool for the batch job which has been cancelled.
    I ve executed alv output in background job. But, some condition is not satisfied, so it has been terminated( job is cancelled).  I need spool for the cancelled job.
    any suggestions.
    Thanks
    GR

    HI Kiran,
    I have created program with ALV grid output, that they are running in background.
    Here is the code,
         IF NOT sy-batch IS INITIAL.
    *program termination
            MESSAGE a203(z3) WITH s_vari-low text-025.
          ENDIF.
        ENDIF
    Before to this code i am calling ALV GRID...
    If i run in background Its creating a spool.  But, after termination deleting the spool. 
    How can i make changes that the spool should not delete in batch job.
    Thanks & Regards
    GR

  • Problems with in/out points when submitting jobs via Terminal/command-line

    I've writting a GUI based script which allows a user to select a source Quicktime file, and will encode that file to multiple formats, and trims each destination based on specific timecode in/out points. However, I'm having problems getting the Compressor command-line interface to honor the in/out timecodes that I've explicitly set for multiple jobs within a single commandline.
    In other words, if I want to encode a source Quicktime between 01:00:00:00 and 01:00:29:23 with just ONE setting/destination, then the following commandline works:
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923
    But if I try to append multiple settings/destinations to the commandline, Compressor will only honor the -in/-out arguments which appear in the LAST -jobpath instance in the commandline.
    For example, the following commandline will properly encode the file to multiple destination files, using the appropriate .settings file, but it ignores the -in/-out points that were set for any -jobpath instance that appears before the last -jobpath instance (in other words, every file is output using 00:59:57:00/01:00:30:01 as the in/out points, instead of having the "*_OTWC.mov" file output using 01:00:00:00 as the in point)
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923 -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/HNN-HD.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_HNN-HD.mov -in 00595700 -out 01003001
    It's wierd that everything else about this command-line syntax works as expected (and as explicitly stated in the Compressor -help output, which says "when submitting individual source files. (The) Following parameters are repeated to enter multiple job targets in a batch"), except for the -in/-out points.
    I've even tried quoting the -in/-out arguments using colons (e.g., -in "01:00:00;00") , but this doesnt appear to change the behavior.
    Is this a bug, or am I missing something here?

    I've writting a GUI based script which allows a user to select a source Quicktime file, and will encode that file to multiple formats, and trims each destination based on specific timecode in/out points. However, I'm having problems getting the Compressor command-line interface to honor the in/out timecodes that I've explicitly set for multiple jobs within a single commandline.
    In other words, if I want to encode a source Quicktime between 01:00:00:00 and 01:00:29:23 with just ONE setting/destination, then the following commandline works:
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923
    But if I try to append multiple settings/destinations to the commandline, Compressor will only honor the -in/-out arguments which appear in the LAST -jobpath instance in the commandline.
    For example, the following commandline will properly encode the file to multiple destination files, using the appropriate .settings file, but it ignores the -in/-out points that were set for any -jobpath instance that appears before the last -jobpath instance (in other words, every file is output using 00:59:57:00/01:00:30:01 as the in/out points, instead of having the "*_OTWC.mov" file output using 01:00:00:00 as the in point)
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923 -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/HNN-HD.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_HNN-HD.mov -in 00595700 -out 01003001
    It's wierd that everything else about this command-line syntax works as expected (and as explicitly stated in the Compressor -help output, which says "when submitting individual source files. (The) Following parameters are repeated to enter multiple job targets in a batch"), except for the -in/-out points.
    I've even tried quoting the -in/-out arguments using colons (e.g., -in "01:00:00;00") , but this doesnt appear to change the behavior.
    Is this a bug, or am I missing something here?

  • [Solved] Have Cron Job Open Terminal Window

    I want to run a ping script every morning to check the liveliness and latency of specific servers. The script itself works fine but I can't figure out how to have cron open up a terminal window so I can see the script running.
    This is what I have so far:
    #runs /home/bran/pingservers.sh everyday at 8:30 am
    10 10 * * * env DISPLAY=:0 konsole -e ~/pingservers.sh
    But it doesn't open anything I don't even know if the job is even executing.
    Last edited by brando56894 (2013-05-20 14:25:42)

    I am unsure how to get the script to open a terminal, but the journal should have some information on whether the script is running or not and if there are any errors.
    brando56894 wrote:
    I don't even think cron jobs are running at all. I changed my job to
    1 * * * * /bin/echo hello world
    and it hasn't done anything...
    As far as the job above, I just wanted to note that you have it set to run on the first minute of every hour. If you were looking for every second minute, you would want the following:
    */1 * * * * /foo/bar
    Last edited by BluMongoose (2013-05-14 22:01:48)

  • RAR Job Scheduler Status

    hi,
    In RAR I have a message in the Job Scheduler which says :
    Job Scheduler Status: unknown error
    therefore jobs are not working...
    thanks for help me
    actual config :
    GRC AC 5.3 SP10
    Edited by: Aurélien GARDE on Jan 21, 2010 3:18 PM

    Hi Aurélien GARDE ,
       I am not very clear about your question, however I am assuming that you are getting the error when running the Background Job , If this is the case  ,please check following
    1)     http://:/sap/CCBgStatus.jsp - it should come up with status u201Crunningu201D
    2) Check Analysis Engine Daemon Manager
    Type URL http://:/sap/CCADStatus.jsp - it should come up with
    status  u201Crunningu201D By default you should see 3 bg job threads and 5 web services threads per server
    Could you please let us know the findings ,If there is blank screen for step 2, then you need to apply note number 999785 , which will resolve your issue.
    Thanks & Regards
    Umashankar T

  • Extend time stream by batch run/job

    Hello!
    We had the problem that our time stream did run out. So our PLA was not extended and our complete planning crashed.
    Is there a possibility (e.g. report) to have a repetitive job/batch run which will calculate and extend our time streams automatically?
    Thanks for every help and hint...it´s important...
    Martin

    Problem was solved with the following support notes:
    1130778     Automatically generating planning calendar periods
    1134662     Periods are generated with incorrect time
    1245264     Automatic updation of timestream
    1319790     /SAPAPO/TIMESTREAM_UPDATE doesn't respect input parameters
    But actually the Z-Report, which should not be created, is quite helpful.
    Regards, Martin

  • RSBDCSUB - Batch Input - Job - Authorization

    Dear All,
    I want to execute session in background using the program RSBDCSUB, but I want to change the user of the session.
    User A creates the Batch input (TC FB03), but doesn't have the authorization to modify an FI document.
    User B has this authorization, and execute the BI.
    There is no problem if user B execute the session online, but if he use RSBDCSUB, then the system keeps the authorization of user A. The idea is that the USER B creates a job running RSBDCSUB several times a day and we don't want to give the authorization to user A .
    Do you know if there is a possibility to do it ?
    Thanks for your help
    Nathalie

    creating a BI session usually is done with function module BDC_OPEN_GROUP.
    One of the importing parameters is the USERID, usually filled with SY-UNAME (the user who executes the function module/report/transaction) but you could overwrite it with any other valid user. If you don't have a report parameter to set the user different from SY-UNAME you would have to modify the report.
    Alternativly a report could be written that changes the user after the session is created.

  • How to submit a batch compare job using a unix script and cron?

    I understand I can setup a unix script to be used to schedule a database compare job. I'm not sure how to get past the popup log in window tho... When I use the command line and include the -id<myid> the OMS login window pops up requesting login password and service. This won't do if I do not want to run this interactive. I cannot find any syntax for the command line other than --id<adminid>  How to I include the password and service?
    Thanks ;)
    Laurie

    I had the same problem.
    My shell looks like (baseline_ELITE.sh):
    ocm login -idsysman
    ocm capture -l BL_ELITE -idsysman
    I don't have the ocm logout.
    First, run the baseline_ELITE.sh, it will ask you about the password. The next times, it never ask again for the password, but take in account don't use the ocm logout.
    Humberto Gomez
    OCP Dev2k, 8i, 9i
    [email protected]

  • Delete Batch input Jobs,New or Incorrect  from SM35

    Hello,
    I found too much entries in SM35 transaction, some are from year 2002. Can I delete these entries without problem? or this problem must be analized by functional area?
    Thanks in advance.
    Kind regards.

    Kindly check with the <b>process owners</b> for the same. Keep a mail to the process leads depending on the transactions, get a confirmation and then proceed to delete incase of Production System.
    Kind Regards
    Eswar

  • Job in batch R/3 CallReceive error Function RFC_ABAP_INSTALL_AND_RUN

    Hi,
    I have an scenario where I am integrating SAP with a DB. I am pulling data from 2 tables from SAP using the R/3 Data flow. I need to run this job on batch, so I changed the parameters on the datastore used to access SAP, when it runs, the job gets terminated, and  I got the following error
    |Dataflow df_sap2tables2file
    R/3 CallReceive error <Function RFC_ABAP_INSTALL_AND_RUN: . Exception condition "INVALID_TARGET" raised.. The problem may go
    away if you change the SAP datastore property to Execute in background(batch)>.
    |Dataflow df_sap2tables2file
    R/3 CallReceive error <Function RFC_ABAP_INSTALL_AND_RUN: . Exception condition "INVALID_TARGET" raised.. The problem may go
    away if you change the SAP datastore property to Execute in background(batch)>
    The abap program gets created on the shared folder.
    Anyone has faced this issue?
    Thanks,
    Julio

    Hi,
    The issue has been resolved. You have to:
    Upload DS function modules into SAP
    Define an RFC destination on SAP
    Run the task RfcSrv on the DS Server
    Thanks, for the help
    Julio

Maybe you are looking for

  • HP Pavilion dv6 - replacemen​t a WiFi module

    Hello! I have a dv6-6b55er model of notebook (product No: A2Y97EA, rev.17F9-110). Some time ago I bought a new WiFi access point which support a 5GHz-band (standards 802.11a/an/b/g/n). But WiFi-module in my notebook is not support this band (WiFi-mod

  • Reduce White Space below Site Title and Above Site Content

    On a SharePoint Online site wiki home page, I'm in need of a Script Editor snippet that will reduce the amount of white space below the site title and the start of the body/content of the site.  (see attached image).  Thanks!

  • China Address Cleansing

    Hi, We're using Global Address Cleanse transform in one of our ETLs. For China (Beijing, Shanghai etc.) address, its populating China as both City and Country and Beijing/Shanghai as State. Below is the output field mappings: State: REGION1_NAME_BEST

  • Trace file errors interpretation

    We are running Oracle 11.2.0.3 on a Windows 2008 R2 Server with an app server on the same. Our app has a search function that has recently started timing out on us. Sometimes intermittently but often now. I've ran a trace in our dev environment, belo

  • How can I make a panelTab disable?

    Hi to everybody!! I�m new to jsf and I'm trying to figure out a way to dynamically disable panelTabs in a panelTabbedPane. I know there is a disableOnUserRole, but this only relates to users and I don�t know how to use it.(If anyone could explain me)