Printing with host command

Let me explain my situation.
I have a txt file which I want to print out. I usually do this with host command which looks something like this:
command:='print /D:\\print_server\printer file.txt';
The problem is how to print this file in landscape.
If this iAS would be installed on Unix platform I guess my host command would look something like this:
command:='lp -d printer -olandscape file.txt';
the problem is, my iAS is installed on WIN2000 server.
any ideas........

OK I managed to solve this problem with some dosprint.exe program (40$) which can accept various other parameters as well and one of them is also landscape.
oh, that windows again .....

Similar Messages

  • Creating folder dynamically with host command or any solution?

    I am working on storing BFILES against thier record. I need to know that how can i perform following tasks if i use host command or any other way if i can do this.
    1.     As there can be many categories agaist which i need to store files, first i need a separate folder for each category, I am looking for some solution that whenever any user creats new category then against that categoy a folder must be auto created.
    2.     when i insert records against any category then files should be stored in their specific directory.
    I hope It will clear to readers that whta i am looking for.
    I am using forms 10.1.2.3, on XP SP-3, WEBUTIL CONFIGURED.
    Regards
    Naveed

    I already made the changes in webutil file, but if you can please tell that does it Support UNC path,
    I changed webutil.cfg as follow
    transfer.appsrv.write.1=c:\temp,\\sermachine\test
    transfer.appsrv.read.1=c:\temp,\\sermachine\test
    but when i run the form i got following error,
    WUC-8: Server side logging was requested but no log file was specified - logging is disables
    Now i don't know that what should I change to work it with on UNC path.
    Thanks in Advance.
    Edited by: 853604 on Aug 18, 2011 10:41 AM

  • SQL script with host command job in Enterprise Manger Grid Control

    I use Enterprise Manger Grid Control 10.2.0.5 and need to create SQL script job on database instance target on unix/linux platform.
    I have problem with os command inside sqlplus script.
    For example for the simple command: SQL> host ls
    I get the message in output log: SQL> SQL> SQL> SQL> SQL> SQL> /bin/bash: ls: command not found
    Can anyone help me?
    Thank you.

    Hi,
    Make sure you have granted all necessary rights (log on as a batch job etc.) to the user used in the prefered credentials.
    Cheers,
    Kenneth

  • Issues with host command

    Hi All
    We are running Forms 10gR2 under linux. We are having issues with the host command. We use host command to call ProC* modules in the appsvr. It used to work in Forms 6i. Host commnd no longer works in forms10g. Do we need to any setup to run commands using host.
    We need to resolve this issue immediately.
    any help is appreciated.
    Rgds
    Arvind Balaraman

    Arvind has said the command needs to run on the app server so HOST is correct, not CLIENT_HOST.
    I noticed when I installed 10g (on solaris) that the default.env file has a setting for PATH which does not include /usr/bin so HOST would not be able to find standard unix commands, so I added it in:
    PATH=/usr/bin:/home/oracle/product/AS101202/bin
    Alternatively you could include the full path on any unix commands run by HOST.
    Surpisingly I have not seen this documented anywhere. Could this be the problem ?
    I have a related problem I have not solved yet. I have one particular HOST command which works OK until after I run reports from forms, then it just stops working without producing any error.

  • Trouble with Host command and Plink

    Hi all, the sentece
    HOST('path -pw 111111 root@ip pwd', NO_SCREEN);
    works fine from the command line but it hangs from the Forms Builder
    ¿what's wrong?
    Thank you

    yes paul it is possible,
    presently we are using same logic by passing form's session ID to the script.
    as we already have that session ID available as long as form is active. but,
    it would benefit me more for my application,if that happens in reverse fashion.
    reason being, we wanted to imitate the same logic once used in our old 2.5 application. but i don't think it is same with 10g, as database server is different from applicaiton server.
    thanks
    nvs

  • Calling SQL Loader using HOST command from Developer Forms 4.5

    I want to execute a set of code from D2K Forms 4.5 which has interfface with Client - OS ( In my case Windows NT/XP). I want to execute SQL Loader from Forms using Host Command and then after completion of that process, I want to do next transcations ( depending upond success of HOST/SQL Loader).
    How to achive this?
    I tried writing code like this ...
    l_vc_command := 'sqlldr73'
                        ||' USERID='||l_vc_username||'/'||l_vc_password||'@'||l_vc_connect_string
                        ||' CONTROL='||l_vc_filepath||'Upload.ctl'
                        ||' DATA='||LTRIM(RTRIM(l_vc_fileloc))
                        ||' LOG='||l_vc_filepath|| l_vc_log_file || '_' || l_dt_sysdate_str ||'.log'                    
                        ||' BAD='||l_vc_filepath|| l_vc_bad_file || '_' || l_dt_sysdate_str ||'.bad'
                        ||' DISCARD='||l_vc_filepath|| l_vc_discard_file || '_' || l_dt_sysdate_str ||'.dsc';
    HOST(l_vc_command,NO_PROMPT);
    After this command i want to do some other code execution. so even if it fails or success, next code is executed. How to control this?
    Please help..
    Regards,
    Milind

    Forms6i running on W2000, Rdbms 8.1.7
    in Forms I added a button TEST,
    Trigger when-button-pressed : host('test.bat') ;
    in directory .......\frm I added file test.bat :
    REM ===============
    cd /d C:\........\ldr
    pause
    sqlldr parfile=test.par
    pause
    type test.log
    pause
    exit
    REM ================
    now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
    Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
    Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command.

  • Calling SQL Loader from Forms 4.5 using HOST command in Win2000

    One of my forms calls SQL Loader 7.3 using HOST command to load a csv file onto the database(Oracle 7.3) under Windows 2000 platform.
    Only after sql loader finishes its operation the control should come to my form i.e. synchronous execution.
    As of now its running asynchronously.
    Is there any way to make it synchronous. If Not any other work arounds?
    Environment Details
    Forms [32 Bit] Version 4.5.10.6.0 (Production)
    Windows 2000 Operating System
    Oracle7 Release 7.3.2.3.2

    Forms6i running on W2000, Rdbms 8.1.7
    in Forms I added a button TEST,
    Trigger when-button-pressed : host('test.bat') ;
    in directory .......\frm I added file test.bat :
    REM ===============
    cd /d C:\........\ldr
    pause
    sqlldr parfile=test.par
    pause
    type test.log
    pause
    exit
    REM ================
    now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
    Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
    Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command.

  • Using host command

    hi all i am shayan and again prob:-(
    i am using oracle 9iDs and forms are run on the web......i had used host command...but it is only open the program on the server....for example i haved open calculator with host command but it is only open on server not on the local computer

    Forms was originally designed as a client/server product. This means that functions like HOST, TEXT_IO, OLE, etc were expected to perform a task on the client machine. Well, this really hasn't changed with the deployment moving to the web. However, the difference is that the client to the database is now the middle tier and these tasks are executed there.
    To perform actions on the end-user (client) machine you will need to use a signed Java Bean. As mentioned by harmvos, Oracle offers WebUtil as an add-on to Forms if you don't want to write your own Java Bean. It can be used with Forms 9.0.4 and newer. It can be used with 902, but since 902 is no longer supported, this isn't recommended.
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm

  • Print to two printers with one command?

    Is there a way to print the same document to two printers with one command? I'd like to have every document I print automatically saved as a PDF at the same time.
    Thanks,
    Mark.
    MacBook Pro (and 5 others)   Mac OS X (10.4.9)  

    That would be a good use of the PDF Services available in OS X. You can use PDF Services with AppleScript or an Automator workflow.
    Matt
    Mac Mini G4; B&W G3/300    

  • When attempting to print with HP P2015 cabled to AirPort Extreme, error message is "Network host (name) is busy".  What's happening?

    When attempting to print with an HP P2015 cabled to an AirPort Extreme, the network won't connect to printer.  The Print Que message is "Network host (name) is busy; will retry in (number) seconds."  When I delete the file to be printed, the Print Queue screen says "Printer Ready".
    More Information:
    The printer's Queue Name is Hewlett-Packard HP LaserJet P2015 Series
    The Location is "(my name) AirPort Extreme"
    URL is "Hewlett_Packard%20%HP%20LaserJet%20P2015%20Series._pdl-datastream._tcp.local./ ?bidi" (for whatever that means)
    Driver Version is 18.4
    Printer Software is HP LaserJet P2015 Series
    The printer is listed as a printer on System Preferences/Print&Fax screen
    If I connect the printer cable directly to the iMac, the printer works fine.
    Any helpful directions would be greatly appreciated.

    I came across an Apple article last modified 6/2/08 (Printer troubleshooting for AirPort Base Stations and Time Capsule).  It suggested the old standby, i.e., disconnect the AirPort Extreme Base Station from its power source, turn off the printer, turn on the printer, and reconnect the AirPort to its power source.  It worked.  I guess disconnecting the AirPort cleared out the network host.  Yea. 

  • 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.

  • HP LaserJet 1200: Prints; creates EXTRA sheet with Offending Command: D

    After every printing job is completed *an extra page is printed* with the following:
    ERROR: undefined
    OFFENDING COMMAND: D
    STACK:
    How can I stop this *unnecessary waste of paper* every time I print something?
    Please help!

    What does work is the following:
    Set your printer to NOT use Appletalk (through your browser).
    Delete your printer and install it again. If you don't see it in the list select IP printer and use the printer's IP address
    Make sure you use a HP driver and not the Generic driver. I used a Gutenprint driver with success on a LaserJet 1200 with a JetDirect network adapter.

  • Remote Desktop Easy Print with Windows 7 Professional host

    Is it possible to utilize Easy Print with a Windows 7 Pro client hooking up to a Windows 7 Pro RDP Host?  Easy print doesn't seem to be present in that scenario... but with Ultimate it seems to work...
    Trying to print to a Dell 5110cn from my home computer with Win7-Pro to a printer here at work.  Again, this works with a different machine with Win-7-Ultimate but doesn't with Win-7-Professional
    Dell 5110cn <-[network]-> Windows7Pro client(@work) <-[RDP]-> Windows7Pro host(@home)

    Hi,
    No, the destination host needs to be Ultimate or Enterprise edition (or Windows Server 2008/2012 with RDSH installed).  What you can do instead is install the exact same printer driver that you have on the client PC onto the host PC.  That way
    when you connect it will create a redirected printer using the manufacturer's driver instead of RD Easy Print driver.
    -TP

  • Host command on linux with forms 10g

    Dear Experts
    i have one major problem as i have made a form in forms 10g to upload .dmp files copied in application server my problem is that when i excute host command like bellow
    cmdln := './imp.sh'
    host(cmdln)
    to excute and run shell script saved on application server which runs an imp command to upload all files copied in specified location but nothing is happening when i click on button as these command are fired on when button click trigger plzzz help its urgent
    were i can make mistake

    Whoa...please don't use txt speak when posting here; it is very hard to read and right now it took me about 5 minutes to understand what you have written. Please write proper sentences; help us to help you ; )
    It is a good idea to have exact the same verison of exp / imp then your database version; Forms 10.1.2.0.2 would be compatible with a 10.1 database. If your database is e.g. 10.2 you'd need to install the 10.2 client software on your application server anyway. You wouldn't need to care about this when using datapump.
    And another thing regarding datapump: conventional export is deprecated in 11.2 so one day or another your customers will need to move to datapump; the sooner the better.
    As said: try to run your script on the shell without forms and see if this works. You would see error messages generated by your shell script too.
    cheers
    Edited by: christian erlinger on 19.05.2011 01:14
    that damn smileys don't work anymore

  • HOST command in Forms9.0.4 versions with 10g

    Hi,
    We are currently running forms6i(character based) on a unix m/c . While trying to upgrade to forms9i (web based) , we find that the HOST command used to call shell script is not wrking and also it doen't shows any errors during compilation or runtime ..Pls suggest how to use HOST command in 9i web based to call a shell script.
    Would appreciate an early response..
    Thanks and regrds ,
    Pooja

    Hi Arun ,
    Thanks for ur response . But when i use client_host , i m getting compile time error as Client_host must be declared . I m using the command as client_host('/ics/users/ics/test.sh') , where test.sh is the script i want to execute . In our developer suite , there is a forms folder which in turn contains webutil folder ..Am i suppose to put shell script there so that it can be called from there ?
    Pls suggest me as how to go abt it..
    Thanks n Regards ,
    Pooja

Maybe you are looking for

  • Hierarchical ALV list with control of printout and Excel download

    Hello everybody, i have to write a program, that has to generate a hierarchical master/client list. The list should have the same functionality, that a standard ALV Grid offers (sorting, grouping, OLE export to Excel). The printout must show a new sh

  • Need Service Tax calculation

    Dear All, I am rasing a service PO with the value of 500 INR. Then i am giving tax code as S1 (10,2,1% +4% VAT Service tax code).  it is not calcuating the taxes. Our tax procedure is TAXINN. maintianed the condition type for S1 tax code using FV11 T

  • Navigation is not happening Tab Strip control after execution of PAI

    Hi All, I'm facing a problem in my dialog program. Here I've a normal screen(200) which contains the tabstrip(3 tabs). Each tab has a subscreen area (named header_ref1, line_ref1 and scedule_ref1 respectively). screen 200's flow logic: PROCESS BEFORE

  • Making a mobile app for droid with flash cs5.5 and as3

    hello there i am having a problem with a mobile application i am  building. It is working just fine with no errors or lag on my  computer.however, when i export it for my droid, one of the lose  functions ceases to work altogether, causing the game t

  • Help needed with transactions and cmp

    Hi, if I have a class/ejb (no transaction) calling an ejb that has "transaction required" then a new transactions is started, how long is this transaction active? If my class/ejb (no transaction) calls another bean that has "transaction supported" wi