Find the answer to your Linux question:
Results 1 to 4 of 4
I cannot find help anywhere for the error message I am getting: 'Too many script files have been specified' Does anyone have a basic way of getting around this issue? ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2

    too many script files question

    I cannot find help anywhere for the error message I am getting:

    'Too many script files have been specified'

    Does anyone have a basic way of getting around this issue?

    Basically, I am copying all the files in my working folder
    and then using a file converter script in my folder to convert a file in the same folder to a new format.

    Thank you
    Last edited by swnee; 03-08-2009 at 09:23 PM. Reason: clarity

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,939
    What distribution of Linux are you using?
    What does "I am copying all the file in my working folder" mean. Copying them from to where?? Are you copying these files to another folder where you are using this converter script to convert files to another format in this new folder?

    'Too many script files have been specified'
    How many script files are you using to try to accomplish this task?

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2
    Quote Originally Posted by yancek View Post
    What distribution of Linux are you using?
    What does "I am copying all the file in my working folder" mean. Copying them from to where?? Are you copying these files to another folder where you are using this converter script to convert files to another format in this new folder?



    How many script files are you using to try to accomplish this task?
    So sorry! I will try and be more clear.

    First, the version I am using is Red Hat Enterprise Linux version 3.

    Second, ignore my 'copying the file in working folder' statement. My converter script is already present in the same folder as the file I want to convert.

    The actual directions to convert the file I will paste here (pretty straightforward). I also named my working folder 'data'.

    "Usage: qsub convert.sh data_folder prefix_filename postfix_filename conversion_type

    there are 4 parameters:
    the 1st is the data folder name
    the 2nd is the part of the file name before the simulation number
    the 3rd is the part of the file name after the simulation number
    the 4th is the conversion_type(1,2,3,4):
    1: from .out to .reformat
    2: from .reformat to .arff
    3: from .reformat to .out
    4: from .arff to .reformat

    example: qsub convert.sh data example out 1
    will convert the files in folder named data,
    example.1.out
    example.2.out
    .....
    example.100.out

    to
    example.1.out.reformat
    example.2.out.reformat
    .....
    example.100.out.reformat"

    when I type 'qsub convert.sh data XOR 1 out', in the command line, the response is always 'too many script files have been specified'.

    Is there some basic logic I am missing?

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,939
    So you have a number of files in a directory named "example.1.out", with the number 1 incrementing up?? and you want to change those files so that the only change is to add "reformat" to the end of the file name??

    If that's right, do this in the specified directory:

    rename .out .out.reformat *.out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...