Postscript file with the RUN command

I have inherited some code that I'm trying to fix.   The postscript file contains a 'RUN' command.  When I try to open the file, I get the error unable to recognize the command.  Understandable since that command does not reside on my server.  It resides on a UNIX box which controls the printer.  However when I try to print the file to the printer nothing happens.  Neither is the command run and the results printed out nor the contents of .PS file is printed.  Please help.

I have included an old PostScript program I wrote from the early 1990's that will print a directory of the interpreter's file system, which is a good place to start.
If there are no files matching the string FG530 then you are out of luck, unless you can find it and download it to the PostScript file system again.
I added the commented lines about file paths and the included image is of the first page of the generated output:
%!PS-Adobe
%%Creator: Marvin R. Horton, Macore Company, Inc.
%%BeginProc:
/Buff 100 string def /Wipe 100 string def
/Rebuff {Buff 0 Wipe putinterval} def
/startpage {18 756 moveto gsave (P O S T S C R I P T   F I L E   S Y S T E M   D I R E C T O R Y ) show 400 0 rlineto .5 setlinewidth stroke
  grestore 0 -6 rmoveto}def
/Dir {0 -6 rmoveto gsave Buff show Rebuff grestore
currentpoint 6 sub 30 lt{450 eq{showpage startpage}{144 720 rmoveto}ifelse}if }def
%%EndProc:
/Courier findfont 6 scalefont setfont
startpage
(*) {Dir} Buff filenameforall
%%How to get file list from a subdirectory of...: (fonts/*) {Dir} Buff filenameforall
%%How to get file list within specific naming "FG...": (FG???) {Dir} Buff filenameforall
showpage

Similar Messages

  • WEBUTIL problems importing a file with the HOST command.

    We are investigating a problem where the users are trying to import a file in from the webserver to be used by the application. The users have successfully moved the file from their local PC to the application server. But, when we perform a HOST command to have the form moved to the UNIX directory, the form hangs. The very last statement of the .BAT file used in the HOST command does the move of the file. And, we can see the entire file in the UNIX directory, we just don't get return back to the form.
    I added displays before and after the HOST command in the form. I see the display before the command but don't receive anything after. The weird thing is this is only happening in our development server. The same issue is not happening in production. Also, if I run the form in client server mode, it works fine also. So, it has to be something on the development application server.
    If anyone has any advice, I would appreciate their help.
    Thanks.

    On the server (assuming Windows since you mention a batch file), locate the Oracle Process Manager Service (for mid tier) on the MS Services Console. Open the properties for this service and click on the "Log on" tab. Check the box labeled "Allow service to interact with desktop".
    That said, if you are executing a batch file on the Windows server to transfer another file to a Unix machine, the above likely won't work either. This is because Windows will not allow a service permission to access network resources (for security purposes). In this case, rather than the above, you will need to change the same setting so a real domain user and not the "Local System" account.

  • Joining files with the "cat" command

    I have four files, ending in .rar, .r00, .r01, and .ro2. They need to be joined. I have tried:
    cat filename1 filename2 filename3 filename4
    the result is an output string of apparent gibberish, with a lot of beeping noises. I let it run overninght and it was still the same in the morning with no results.
    I need to join these files.
    1. Is cat the right command to join them? If not, what is the correct command and how do I use it?
    2. If cat is the right command to join the files, what am I doing wrong?
    Thank you.

    Typically, binary files, e.g., archive and image files, have some structure to them. Catenating files with cat won't recognize or honor that structure, so the resulting file won't be useful.
    You're other problem, as already pointed out, is that cat's output defaults to your terminal window, so you need to redirect its output to a file with "> filename". Because it was a binary file, you saw gibberish and heard beeps.

  • Saving postscript files with the separations option

    I am testing Adobe Acrobat XI. We used to separte our clients pdf files as followed.
    file - save as - postscript file - advanced options - ... separations cropmarks etc.
    if you open this file i  acrobat you get all your desired printingplates. this stoped working in Acrobat XI on al computers in the office
    Mac Os = Lion and Mountain Lion
    al systems give the same error in Distiller.
    %%[ Error: undefined; OffendingCommand: Adobe_AGM_OnHost_Seps ]%%
    Older postscript files that are created with acrobat 9 work fine.
    So i am guessing it is An acrobat problem
    thanx
    Bert

    Hey,
    OS:
    Mac Os 10.7.5 and Os X 10.8.4
    -correct
    Acrobat XI 11.0.3
    -My info says 11.0.0 and Creative Cloud manager marks Acrobat up to date
    Acrobat XI:
    1. Open a PDf file from client
    2. File -> save as -> postscript file -> advanced options / settings -> output -> color select sperations. (could you add the screen with all settings, just to be sure)
    -in  attchement
    3. Save file to .ps    Distiller XI:
    4. You open distiller (did you select any conversion preset?)
    -no Conversion PrintScreen attached
    5. Select the .ps and convert
    At this point you get a post script error: %%[ Error: undefined; OffendingCommand: Adobe_AGM_OnHost_Seps ]%%
    Comparison done:
    old .ps file from Acrobat 9 (seperations) are converted to .pdf
    new .ps file from Acrobat 11 (seperations) are not converted to .pdf
    -correct
    + Maybe you could create a simple sample file and add a link to test if the issue can be replicated at this end?
    -in attachement
    + You did try multiple source files? Different PDF files?
    -yes
    + Did you test different Distiller presets before converting ps to pdf?
    -yes
    Files:
    .pdf file = https://files.acrobat.com/preview/743d719a-7d46-40c7-b011-6d583adb57fc
    .ps file = https://files.acrobat.com/preview/c9f687bf-fdf6-4c81-8926-33e99d39025b
    Settings:
    ps file:
    https://files.acrobat.com/preview/333887c2-04f5-4c2a-9554-111f3fac88a3
    https://files.acrobat.com/preview/52821358-9224-4e8d-935c-469da5627a2f
    https://files.acrobat.com/preview/615647ad-a7a4-4a09-ade9-46b79b89d55f
    https://files.acrobat.com/preview/83bdd504-1ba0-4908-aa47-2f157bdf7231
    distiller:
    https://files.acrobat.com/preview/1af4e0e4-4b8f-45ef-8471-1f04ba63eafc
    https://files.acrobat.com/preview/5aeff868-87a6-4fc4-9e61-b766d808f333
    https://files.acrobat.com/preview/028d3e75-20e0-4fc0-897e-ac419d7fb6e8
    thanx...
    Bert

  • I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    Thanks for writing to us. Unfortunately, such advanced javascript support is currently not provided by Adobe Reader for Android.
    Thanks,
    Adobe Reader Team

  • Running class files from the windows command line...

    Hello Everyone,
    My instructor showed us a way to run class files from the windows command line. However every time I try to run the class file from the command line using a command like: java CruiseHelper.class
    I get an error that states "Exception in thread "main" java.lang.NoClassDefFoundError: CruiseHelper/class"

    Hello Everyone,
    My instructor showed us a way to run class files from
    the windows command line. However every time I try
    to run the class file from the command line using a
    command like: java CruiseHelper.class
    I get an error that states "Exception in thread
    "main" java.lang.NoClassDefFoundError:
    CruiseHelper/class"Classes are not file names. You don't have a class named "CruiseHelper.class", that's a file name. The class name is just CruiseHelper (if you have no package statement in it).
    So,
    java -classpath . CruiseHelper

  • MY system folder, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac) How do I remove them

    I have a Macbook Pro running Leopard 10.5.8. I had a problem with my my operating system (my fault, I moved a file I shoudnt have) couldnt boot up but was able to boot up from a backup. I managed to repair my original system except now all the system folders, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac).  For the most part the dupes are an exact copy, but not always.  I want to remove them to free up space and cant imagine duplicate folders in the /system/library are not hindering my computer. But I dont know where to start and am afraid of doing irreparable damage. Any ideas

    pacull,
    Use iCal>View>Show Notifications to choose what to do with the notification.

  • How can I create a file with the excel file type?

    I work with forms 4.5 and I could create "TEXT_IO.FILE_TYPE", but with this I make a I/O TEXT file not a file with the characteristics from a excel file! Can somebody help me please?!?!?
    Best regards,
    Chris from Portugal

    The extension file must be 'CSV' and not 'CVS'. It's better to separate your items by a ';'
    The HOST command you have to execute after creating the file it's HOST(EXEL_PATH SPACE YOUR_FILE) OR Open the DOS PROMPT and type: Exel your_file_name.

  • Export to PDF - Can a single report (rpt file) create multiple PDF files using the export command?

    Post Author: markeyjd2
    CA Forum: Exporting
    Greetings forum members,
    My question is, in its entirety: Can a single report (rpt file) create multiple PDF files using the export command, ideally one PDF file per DB record?
    In my case; I have a Crystal Report that reads data from a DB table containing ~ 500 records.  When I export the report to a PDF file, I get one PDF file, with ~ 500 pages.
    What I would like to do is export the report to ~ 500 individual PDF files; One file per DB record.  The file names would be based on the table's primary key.
    Is this possible?

    Post Author: Micha
    CA Forum: Exporting
    Hi,
    you need some lines of code, but its easy. Dependend on how to start the generation of your 500 PDFs, you can write an ASP page and start it via Web Browser, or a Windows Script and start it via scheduled job...
    Here's an abstract of the ASP code I use:
    First, you create a recordset (here: "rsc") which gives you the list of ID fields you want to export, then you create CrystalRuntime.Application object, then you loop through the recordset, open your report (here: "oRpt") and set login info. Then set the selectionformula, so that the report displays only the data of the current ID, e.g.:
      oRpt.RecordSelectionFormula = "(" & oRpt.RecordSelectionFormula & ") AND {myTab.myVal}=" & rsc("myVal")
    Then you export the report, move to the next record in recordset, and repeat the loop until recordset.EOF. Then you close recordset and connection.
    Micha

  • How do I make Applescript to compress 2 filez with the same name?

    Hello guys and thank you for reading this!
    I don't know a lot about programming, but i believe applescript can save my life. What I need is.
    Detecting 2 files with the same name, but differnt extension. (song 1.jpg, song 1.mp3)
    Compressing those 2 files into a single .zip (In the end I would have song 1.jpg, song 1.mp3 and song 1.zip
    And that's it! I know its pretty simple, and I've seen the "Create Archive" in automator, but I don't really know how to tell him which files to Compress.
    Thanks again!

    Hi,
    Try this script :
    set sourceFolder to choose folder
    tell application "System Events"
          {name, name extension} of (files of sourceFolder whose name extension is not "zip")
          my compress2FilesSameName(the result, sourceFolder as string)
          repeat with i in (get folders of sourceFolder) --check in subfolders
                {name, name extension} of (files of i whose name extension is not "zip")
                my compress2FilesSameName(the result, path of i)
          end repeat
    end tell
    on compress2FilesSameName(tList, tFolder)
          set tnames to item 1 of tList
          set tExtensions to item 2 of tList
          set tc to count tnames
          set j to 1
          repeat while j < tc
                tell (item j of tExtensions) to if it is not missing value or it is not "" then
                      set n1 to (count) + 2
                else
                      set n1 to 1
                end if
                tell (item (j + 1) of tExtensions) to if it is not missing value or it is not "" then
                      set n2 to (count) + 2
                else
                      set n2 to 1
                end if
                set name1 to item j of tnames
                set name2 to item (j + 1) of tnames
                if (text 1 thru -n1 of name1) = (text 1 thru -n2 of name2) then -- same name
                      set tFile1 to quoted form of POSIX path of (tFolder & name1)
                      set tFile2 to quoted form of POSIX path of (tFolder & name2)
                      set zipFile to quoted form of POSIX path of (tFolder & (text 1 thru -n1 of name1) & ".zip")
                      do shell script "/usr/bin/zip -j  " & zipFile & " " & tFile1 & " " & tFile2
                      set j to j + 2
                else
                      set j to j + 1
                end if
          end repeat
    end compress2FilesSameName
    if an archive already exists with the same name (in the parent folder of the files to compress) , the ZIP command overwrite this ".zip" file.
    Example  with "song 1.jpg", "song 1.mp3" and "song 1.zip" :
    If "song 1.zip" doesn't exist, the ZIP command create the "song 1.zip" file.
    If "song 1.zip" exist, the ZIP command overwrite the "song 1.zip" file (it will not create a new archive).

  • How do I print to a postscript file with InDesign CS6 without both extensions, .indd.ps?

    How do I print to a postscript file without an .indd extension in InDesign CS6? I choose Print, choose a print preset from my print shop and Save. The first time I tried it was blank (the Hide Extension was checked), so I tried to save and got a dialog box that said it cannot be saved as an .indd file (duh), to choose both or .ps. I chose .ps and it was fine, but every time I postscripted it gave me this dialog box until I unchecked Hide Extension. After I did that, every time I postscript it automatically saves both extensions. Not a big deal but it is annoying. I just want it to end with .ps like it used to. Any ideas on how to fix this?
    Thanks!!

    I have no idea but I am incredibly curious...why are you doing this?
    Printing to postscript is a completely archaic workflow. Export to PDF
    instead.
    Bob
    TKnudt <mailto:[email protected]>
    Tuesday, January 15, 2013 6:12 PM
    >
          How do I print to a postscript file with InDesign CS6 without
          both extensions, .indd.ps?
    created by TKnudt <http://forums.adobe.com/people/TKnudt> in
    /InDesign/ - View the full discussion
    <http://forums.adobe.com/message/4996731#4996731

  • Can FTP-access to field point log file interrupt the running program?

    Can FTP-access to field point log file interrupt the running program?
    We have a problem where our factory process control program on a Field Pointer suddenly stops the process. We are running the development system on a PC, wich deploys the program on the Field point, with user interface on the PC. Quite often the process stops for no apparent reason. I'm not sure right now if the control program on the Field Point is still running or if it stops. We use FTP from a distant PC (over VPN) directly to the Field Point to check if the process is running, by looking for date and size of log files produced during running process. I've never opened och copied any log file during process run, because this I'm sure this would cause problems for new log entries to be written. But can the mere looking at the log folder via XP-pros ftp-functionality cause the Field Point to have problems writing data to a log file?
    I'm not sure how windows XP pro handles "my network places" when it comes to FTP, it look that it keeps some kind of local copy of the folders, or at least the files opened.
    Next version of the program will have only basic functionality on the Field Point, leaving logging etc. to another program on the PC, but right now we are stuck with this system.
    Ola A

    It turned out that the problem lies in the harware of the production machine, it was not a labiew-program problem at all!
    Ola

  • How to extract file with the extension .CAR

    Hi,
    I have a requirement where I need to extract the file .CAR . I have tried with the following command in DOS prompt :-  CAR -xvf <filename>  but I am not able to extract the file.Can you please tell how can I extract this file.What do I need to install to extract it?
    Regards,
    Pawan

    Hi,
    Check these links
    http://www.easymarketplace.de/winzip-7zip.php?Area=4soi
    http://service.sap.com/patches (SMP id required)
    Regards
    Fahad hamsa

  • Couldn't create a postscript file for the devnagri script from indesign

    Hi,
    Couldn't create the postscript file for the indesign devnagri script. Its throughing error saying offending fonts.
    I have added a link where u can download the rar file which contains indesign file and required fonts.
    http://wikisend.com/download/278714/Devnagri Script.rar

    @Raghugada – I tested with your new font (no license restriction) and could print to PostScript and distill to PDF without problems. Something else is wrong on your side. Could you provide an IDML file instead of the inDesign file? I will test this as well.
    And: How do you print to PostScript?
    Do you do it with the right PPD? The "Adobe PDF 9.0" ? (PPD => PostScript Printer Description File)
    Do you do it with the right setting in the print dialog of InDesign?
    PostScript Level 3, binary, all fonts fully embedded?
    Here a screenshot of a sample PDF from Acrobat Pro with SHREE-DEV-7-0715 font:
    Uwe

  • How to output a postscript file with .ps extension name in jsp?

    Hi,
    I could use a servlet to output a postscript file with .ps file extension name. But I tried to do the same with jsp, for some reason, jsp always outputs a file with .jsp extension name though the content is postscript. Could anyone help me on this? Here is my jsp code:
    <%@page contentType="application/postscript"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="java.util.*" %>
    <%@page import="java.io.*" %>
    <jsp:useBean id="corresv" class="oiintranet.CorresVBean" scope="request"/>
    <%
    response.setContentType("application/postscript");
    String corresId = request.getParameter("Id");
    corresv.setCorresId(corresId);
    PrintWriter output = response.getWriter();
    output = corresv.getResult(output);
    output.flush();
    %>
    In the bean corresv:
    public class CorresVBean extends BaseBean {
    private String corresId;
    public void setCorresId(String s) {
    this.corresId = s;
    public PrintWriter getResult(PrintWriter output) {
    //get postscript file content from a socket, one string line each time until reaches "X_END"
    String str;
    while ((str = in.readLine()) != null) {
    if (str.equals("X_END")) break;
    output.println (str);
    output.close();
    }catch(Exception e) {
    e.printStackTrace();
    return output;
    Thank you in advance.
    Geraldine

    Hi
    Every time u want to make a file u need to make its extension. I am talking
    about general scenario like word, excel so even when u make spool file
    so u need to give extension.
    like
    Spool temp.sql
    it will save u r file as sql file.
    hope it will help
    regards

Maybe you are looking for

  • How to retrieve Target names  in  servlet s or JSP ?

    Hello, I have an html page which displays in a Frame of a Frame Set. Let's say the frame name is = "mainframe". In this page I have the following : <form method="post" action="Test1.jsp" target="mainframe"> <input type=submit value="Execute"></form>W

  • My 23" HD Monitor Keeps Waking Up - Help!!

    My monitor keeps waking up on it's own. I know there must be something going on internally with my Mac Pro that makes it wake up. What should I start with?

  • Is there way to export a selection to JPEG through script (CS3)

    Hi all, Is there way to export a selection to JPEG through script (CS3). CS2 has possible method to export a selection to JPEG using the method Application.JPEGExportPreferences.ExportingSelection = True. But this method is not supported in CS3. Rega

  • How to verify webapplication in cluster

    Dear there, How can I verify my web application is set up correctly on cluster environment? Are there any standard procedures? My web applications is a directory with jsp page. And I have two machines in cluster, webapps1, webapps2 and name of cluste

  • Format XML doc based on values in another xml doc

    Database version : Oracle 10g I have an XML "data" file and an associated error file that is also XML. I want to take the XML data file and highlight visually in a html file only those fields and contents that are there in the "error" file. There are