Sponsored Content
Full Discussion: writable protected file
Top Forums UNIX for Advanced & Expert Users writable protected file Post 302251932 by reborg on Tuesday 28th of October 2008 11:22:55 AM
Old 10-28-2008
You could simply use the "logger" command with an appropriate priority in the script and use syslog to handle the logging part. That should resolve the issue you are having.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem in converting password protected excel file to csv file in unix

I need to convert a password protected excel file which will be in UNIX server to a comma separated file. For this I need to open the excel file in UNIX box but the UNIX box doesn't prompt for password instead it is opened in an encrypted manner. I could manually ftp the excel file to local... (2 Replies)
Discussion started by: Devivish
2 Replies

2. HP-UX

Lpadmin(1M) rejects devices writable by lp

When we executed a lpadmin command, the following error was output. # lpadmin -phsaprinter -v/home/hoge/lpfile -mrmodel -ocmrcmodel -osmrsmodel -ormhsaprinter -orphsaprinter lpadmin: can't access file "/home/hoge/lpfile" /home/hoge/lpfile is the file other user made. The... (1 Reply)
Discussion started by: madhurtripathi
1 Replies

3. Solaris

/dev/null not writable

Hi, after a server (solaris 10) got rebooted, Im faced with the problem that in one of my zones (whole zone) /dev/null is only writeable for root crw-r--r-- 1 root sys 13, 2 Jul 8 10:16 /dev/null Unfortunatly chmod didnt help at this point and since its a productive system I dont... (11 Replies)
Discussion started by: bin-doph
11 Replies

4. UNIX for Dummies Questions & Answers

How to download file protected by image captcha from command line?

Hello, any way to download file from image captcha download protected website? The download link is not static but session based, generated. I can do also via web browser, but i trust rather command line, maybe im wrong (1 Reply)
Discussion started by: postcd
1 Replies

5. Shell Programming and Scripting

World writable home dirs

what is wrong with this script? I get: ./perm.sh: command substitution: line 21: unexpected EOF while looking for matching `"' ./perm.sh: command substitution: line 22: syntax error: unexpected end of file Script: #!/bin/bash for dir in `/bin/cat /etc/passwd | /bin/egrep -v... (4 Replies)
Discussion started by: greenja9
4 Replies

6. Red Hat

Related to "NAS" some file system (mounted volumes) were not writable

Dear friends, I have been facing an issue with one of my red hat unix machine, suddenly lost to switch sudo users. My all colleagues lost to switch to access sudo users. Then, we have realized its related to NAS issue which does not allowing to write the file. because of this we got so many... (1 Reply)
Discussion started by: Chand
1 Replies

7. Post Here to Contact Site Administrators and Moderators

Password protected excel file without encryption or zipping

All, I have requirement to send password protected excel file in an email from unix/linux box without zipping it. Any help would be appreciated. Thanks.. (1 Reply)
Discussion started by: Durgesh Gupta
1 Replies

8. Shell Programming and Scripting

Password protected excel file without encryption or zipping

All, I have requirement to send password protected excel file in an email from unix/linux box without zipping it. Any help would be appreciated. Thanks.. (8 Replies)
Discussion started by: Durgesh Gupta
8 Replies

9. UNIX for Beginners Questions & Answers

Opening up ZFS pool as writable

I have installed FreeBSD onto a raw image file using QEMU Emulator successfully. I have formatted the image file using the ZFS file system (ZFS POOL). Using the following commands below I have successfully mounted the image file ready to be opened by zpool sudo losetup /dev/loop0 .img sudo... (1 Reply)
Discussion started by: alphatron150
1 Replies
initlog(8)						      System Manager's Manual							initlog(8)

NAME
initlog - log messages and events to the system logger SYNOPSIS
initlog [-cefnpqrs] [--cmd=ARG] [--event=ARG] [--facility=ARG] [--name=ARG] [--priority=ARG] [--run=ARG] [--string=ARG] DESCRIPTION
initlog logs messages and events to the system logger. It is mainly designed for use in init scripts. initlog reads a configuration file /etc/initlog.conf by default, to determine its settings. Any line preceded with a # is a comment, and the following configuration direc- tives are recognized: facility <logging facility> Sets the default logging facility priority <logging priority> Sets the default logging priority ignore <regexp> Messages that match the regular expression will not be logged. initlog behavior can also be configured by command-line options. OPTIONS -c, --cmd=[program] Execute the specified program, logging anything output to stdout or stderr. -e, --event=[number] Logs that the specified event happened. Used in conjuction with --name. Currently specified events are: 1 the action completed successfully 2 the action failed 3 the action was cancelled at user request 4 the action failed due to the failure of a dependent action -f, --facility=[facility] Log at the specified syslog facility. The default is daemon (see syslog(3)). -n, --name=[string] Log the event under the specified string, such as "inetd". -p, --priority=[priority] Log at the specified syslog priority. The default is notice (see syslog(3)). -q Do not print the program's output, unless it exits with a non-zero exit code. -r, --run=[program] Execute the specified program, with an open file descriptor so that the program can pass back commands to initlog. -s, --string=[string] Log the specified string to the logger. --conf=[file] Specifies an alternate configuration file. FILES
/etc/initlog.conf SEE ALSO
syslog(3), logger(1) Sun Jan 24 1999 initlog(8)
All times are GMT -4. The time now is 11:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy