Hi,
I'd like to run my script from /etc/inittab
I add the following line to it:
infx:3456:once:/tmp/for_test >/dev/console 2>&1
The script has -rwxr-x-r-x permission
The script content:
-------------------------------------------
#!/bin/ksh
echo "running for_test script"
touch...
Hi,
I using shc shell compiler for hide my script code.
I compile and run the script.
But ps command allows to see script code.
I.e:
ps -ef|grep myscript
Any suggestions?
Thanks in advance,
Vadim
Hi,
I run command ps -ef in Solaris 10.
Almost all my processes have controlling terminal = console.
(including /sbin/init and svc.startd)
svcs -x command doesn't report any errors.
Please help.
Thanks,
Vadim
Hi,
Please let me know what is wrong here(I use tcsh):
alias abc "awk -F= '{print $2}' File|awk -F\" '{print $2}'"
I get unmatched ".
How can I define double-quote separator in the second awk?
Thanks in advance,
Vadim
Hi,
I am looking for a script that like cron daemon can read input file written in crontab format.
And run the jobs from the input file when needed.
Thanks in advance,
Vadim
Hi,
I use this operator in my ksh script:
cat << EOF > /tmp/allowed_fs_file
^/[^/]*usr
^/[^/]*user
^/[^/]*home
EOF
But from time to time I get the following error
message while running this script:
/tmp/sh<some_number>: cannot open
I check that /tmp has enough disk space.
The problem is that...
Hi,
I need to delete the last character in a file by using
ex commands.
I know for example how to delete the last line by this command:
echo "d\nw\nq"|ex my_file
How can I do this for a character?
Thanks in advance,
Vadim
Hi,
I'd like to sort regular files by modification time that resides in directory tree.
Is this command correct?
find /path/to/dir -type f | xargs ls -ltr
Thanks in advance,
Vadim
Hello,
I'm running Apache2 under RedHat 8, using mod_ntlm for NT domain.
When mod_ntlm uploaded, it doesn't allow basic authentication
which I use for selective directories using .htaccess
Here my .htaccess file:
AuthName ByPassword
AuthType Basic
AuthUserFile <path_to_file>
<Limit...
Hi,
I am trying to create sendmail.cf file from aixsample.mc file using m4 macro.
I did these steps:
cd /usr/samples/tcpip/sendmail/cf
m4 ../m4/cf.m4 aixsample.mc > sendmail.cf
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig
cp sendmail.cf /etc/mail
stopsrc -s sendmail
startsrc -s sendmail...
Hi,
Do you know about limitations in using large uid & gid
(more than 60000) startnig from Solaris 2.6?
Solaris documentation recommend to use range below 60000 where possible.
I have only Solaris 2.6 and up.
Did you have any problems using large uid & gid?
Thanks in advance,
Vadim
When invoke tcsh ( installed from depot for 11.23 ) I get:
tcsh: using dumb terminal settings.
And when I'm typing the command which length is greater then terminal width, "enter", and trying to edit the command - you'got the problem.
Any help appreciated.
Hi,
I have a following script:
--------------------------------------------------
#!/bin/ksh
function start{
var=abc
echo "in function var=$var"
}
start | tee log
echo "in program var=$var"
--------------------------------------------------
This is the output I get:
in function var=abc
in...
Hi,
Could you help me to find out what is wrong in my script?
#!/bin/ksh
exec 3 >> log
{
print start
print -u2 error
print -u3 "only to logfile"
print end
} 2>&1 |tee log
I get on my terminal and in the log file the same:
start
error
end
But I expect to get in the log file:
start
error
only...
Hi,
I have a general question about creating log file for ksh
script.
1. I'd like to send all my script stdout and sdterr messages to the same log file.
2. I want to add a pattern before each line comes to the log file from stderr. This will done in order to recognize all messages coming from...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.