I have some files created in Excel that have to be saved as .txt files in order to load them into our accounting system. I can save the files as .txt files through Excel, but I then have to open them in TextPad and do a save as to change the Format from PC to UNIX. Is there a way to skip this step... (2 Replies)
hello
on my ultra 5 (under debian) obp since I activated an error saving mode display.
Since it starts and displays <power save >, then this is prologue to sleep for hours.
i can ejecting the cdrom works, I hear the fans ....
I have not access of OpenBoot (stop + a).
can i do an hard... (0 Replies)
Hi,
i have 2 input files which are file1.txt and file2.txt. I need to extract data from file1.txt and file2.txt and save it in file3.txt like example below:-
File1.txt
ID scrap1
Name scrap1
start 1
end 10
ID scrap2
Name scrap2
start 11
end ... (4 Replies)
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Hi Guys,
I have blank file A.txt
I will run the script xyz.sh
First i want to open a.txt file...
Now i will enter some data like
XYZ
ABC
PQR
..
Save it and keep continue my script....
END of my script.
Thanks (1 Reply)
Hi friends,
I am pretty new to shell scripting, please help me in this Scenario.
for example, If I have one file called input.txt
once I run the script,
1.It has to delete the old input.txt and create the new input.txt (if old input.txt is not there, no offence, just it has to create a... (2 Replies)
I am having a little trouble with some things using the code below:
1. printf "Enter variant: "; read variant The user enters the variant and that value is used in the python script. However, I am not sure how to save that value inputed as a text file in a specific directory... (8 Replies)
I am looking for a way to start a script and have it prompt for a password that will be used later on in the script to SSH to another host and to SFTP. I don't want the password to be hard coded. Below is my script with the actual IP's and usernames removed.
#!/usr/bin/expect -f... (2 Replies)
Hi,
How can i save a file directly into my windows file system by running a shell script from my unix file system.
I need to fetch data from a database and save it in a file. Since the data downloaded from database is huge, if i save it in the unix file system, the space in my home directory... (2 Replies)
Hi, totally new to linux base using windows when started learning and using computers.
but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies
LEARN ABOUT OPENSOLARIS
wsreg_can_access_registry
wsreg_can_access_registry(3WSREG) Product Install Registry Library Functions wsreg_can_access_registry(3WSREG)NAME
wsreg_can_access_registry - determine access to product install registry
SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...]
#include <fcntl.h>
#include <wsreg.h>
int wsreg_can_access_registry(int access_flag);
DESCRIPTION
The wsreg_can_access_registry() function is used to determine what access, if any, an application has to the product install registry.
The access_flag argument can be one of the following:
O_RDONLY Inquire about read only access to the registry.
O_RDWR Inquire about modify (read and write) access to the registry.
RETURN VALUES
The wsreg_can_access_registry() function returns non-zero if the specified access level is permitted. A return value of 0 indicates the
specified access level is not permitted.
EXAMPLES
Example 1: Initialize the registry and determine if access to the registry is permitted.
#include <fcntl.h>
#include <wsreg.h>
int main(int argc, char **argv)
{
int result;
if (wsreg_initialize(WSREG_INIT_NORMAL, NULL)) {
printf("conversion recommended, sufficient access denied
");
}
if (wsreg_can_access_registry(O_RDONLY)) {
printf("registry read access granted
");
} else {
printf("registry read access denied
");
}
if (wsreg_can_access_registry(O_RDWR)) {
printf("registry read/write access granted
");
} else {
printf("registry read/write access denied
");
}
}
USAGE
The wsreg_initialize(3WSREG) function must be called before calls to wsreg_can_access_registry() can be made.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO wsreg_initialize(3WSREG), attributes(5)SunOS 5.10 22 Sep 2000 wsreg_can_access_registry(3WSREG)