Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Output of the script in notepad Post 302420222 by pinga123 on Tuesday 11th of May 2010 04:28:31 AM
Old 05-11-2010
just run the command on terminal.
countsys.sh > abc.txt

I will explain rest of the procedure how would you read the output in asp.
This is how you have to go about.
Since asp pages are deployed on windows server (using IIS).

You will have to use little bit cgi programming inside your asp page.
You basically have to do changes in unix server and your asp code.

If possible can u explain what your page is going to do?
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Strange Characters After Using Notepad

Hello all, I'm new to UNIX and new to this forum, so forgive my lack of knowledge. I'm new with editing in vi so I FTP scripts to a Windows machine and edit the script in notepad (when I need to do something quickly). Sometimes when I FTP the script back to the UNIX box, strange characters... (4 Replies)
Discussion started by: dgower2
4 Replies

2. UNIX Desktop Questions & Answers

Wordpad or Notepad?

I am new to using UNIX and after uploading a new script to UNIX from Windows using FTP, the script doesn't always work. It seems this depends on the text editor I use and the transfer type. I understand all scripts should be transferred using ASCII, but can you advise which is the best text editor... (12 Replies)
Discussion started by: Heidi.Ebbs
12 Replies

3. UNIX for Dummies Questions & Answers

Formatting from Notepad++ to Vi

Hi, just quick question, I currently type up my scripts in Notepad++ and then copy them into my file (in VI). However, i've noticed that all the lines get messed up and it becomes difficult to read the script. so i've to spend time then using '\' at the end of lines etc and re-formatting... (7 Replies)
Discussion started by: horhif
7 Replies

4. Windows & DOS: Issues & Discussions

run cygwin bash script from notepad++

I'm using Notepad++ to edit my BASH scripts and using CYGWIN to run them from Windows7. In Notepad++ there is a 'Run' capability. How do I get this to run my scripts directly without having to enter the script name from the Cygwin command line? (3 Replies)
Discussion started by: millsy5
3 Replies

5. Windows & DOS: Issues & Discussions

PERL: Running script from Notepad++

I'm not sure if this forum covers PERL issues but here I go: I'm trying to run a PERL script from Notepadd++. I've entered the path of the script from the run command but it is only opening a blank window. Is there anything else that needs to be done when using the 'RUN' feature of Notepad++? (2 Replies)
Discussion started by: millsy5
2 Replies

6. Windows & DOS: Issues & Discussions

UNIX and notepad++

I connect to my office server using ftp option in notepad++ I am not able to open directory's with out setting my clear case view in the notepad++ Hence pls help me in setting the view in notepad++ so that it can read all the files and directorys (6 Replies)
Discussion started by: Syed Imran
6 Replies
ddi_segmap(9F)						   Kernel Functions for Drivers 					    ddi_segmap(9F)

NAME
ddi_segmap, ddi_segmap_setup - set up a user mapping using seg_dev SYNOPSIS
#include <sys/conf.h> #include <sys/ddi.h> #include <sys/sunddi.h> int ddi_segmap(dev_t dev, off_t offset, struct as *asp, caddr_t *addrp, off_t len, uint_t prot, uint_t maxprot, uint_t flags, cred_t *credp); int ddi_segmap_setup(dev_t dev, off_t offset, struct as *asp, caddr_t *addrp, off_t len, uint_t prot, uint_t maxprot, uint_t flags, cred_t *credp, ddi_device_acc_attr_t *accattrp, uint_t rnumber); INTERFACE LEVEL
These interfaces are obsolete. See devmap(9E) for an alternative to ddi_segmap(). Use devmap_setup(9F) instead of ddi_segmap_setup(). PARAMETERS
dev The device whose memory is to be mapped. offset The offset within device memory at which the mapping begins. asp An opaque pointer to the user address space into which the device memory should be mapped. addrp Pointer to the starting address within the user address space to which the device memory should be mapped. len Length (in bytes) of the memory to be mapped. prot A bit field that specifies the protections. Some combinations of possible settings are: PROT_READ Read access is desired. PROT_WRITE Write access is desired. PROT_EXEC Execute access is desired. PROT_USER User-level access is desired (the mapping is being done as a result of a mmap(2) system call). PROT_ALL All access is desired. maxprot Maximum protection flag possible for attempted mapping (the PROT_WRITE bit may be masked out if the user opened the special file read-only). If (maxprot & prot) != prot then there is an access violation. flags Flags indicating type of mapping. Possible values are (other bits may be set): MAP_PRIVATE Changes are private. MAP_SHARED Changes should be shared. MAP_FIXED The user specified an address in *addrp rather than letting the system pick and address. credp Pointer to user credential structure. ddi_segmap_setup() dev_acc_attr Pointer to a ddi_device_acc_attr(9S) structure which contains the device access attributes to apply to this mapping. rnumber Index number to the register address space set. DESCRIPTION
Future releases of Solaris will provide this function for binary and source compatibility. However, for increased functionality, use ddi_devmap_segmap(9F) instead. See ddi_devmap_segmap(9F) for details. ddi_segmap() and ddi_segmap_setup() set up user mappings to device space. When setting up the mapping, the ddi_segmap() and ddi_segmap_setup() routines call the mmap(9E) entry point to validate the range to be mapped. When a user process accesses the mapping, the drivers mmap(9E) entry point is again called to retrieve the page frame number that needs to be loaded. The mapping translations for that page are then loaded on behalf of the driver by the DDI framework. ddi_segmap() is typically used as the segmap(9E) entry in the cb_ops(9S) structure for those devices that do not choose to provide their own segmap(9E) entry point. However, some drivers may have their own segmap(9E) entry point to do some initial processing on the parame- ters and then call ddi_segmap() to establish the default memory mapping. ddi_segmap_setup() is used in the drivers segmap(9E) entry point to set up the mapping and assign device access attributes to that mapping. rnumber specifies the register set representing the range of device memory being mapped. See ddi_device_acc_attr(9S) for details regarding what device access attributes are available. ddi_segmap_setup() cannot be used directly in the cb_ops(9S) structure and requires a driver to have a segmap(9E) entry point. RETURN VALUES
ddi_segmap() and ddi_segmap_setup() return the following values: 0 Successful completion. Non-zero An error occurred. In particular, they return ENXIO if the range to be mapped is invalid. CONTEXT
ddi_segmap() and ddi_segmap_setup() can be called from user or kernel context only. ATTRIBUTES
See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Stability Level |Obsolete | +-----------------------------+-----------------------------+ SEE ALSO
mmap(2), attributes(5), devmap(9E), mmap(9E), segmap(9E), devmap_setup(9F), cb_ops(9S), ddi_device_acc_attr(9S) Writing Device Drivers SunOS 5.10 17 Nov 2003 ddi_segmap(9F)
All times are GMT -4. The time now is 01:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy