Hi guys,
just wondering how to put attachment and send the email from unix..from solaris 10.
I usually use the mail command is "mailx"
search in man page.. no luck...
Thanks guys,
Hi guys,
I've got the script which contain sybase sql as below
#!/usr/bin/ksh
isql -S.. -U.. -P.. << SQL
INSERT INTO TABLE VALUES (...)
SQL
if INSERT in sybase successful
echo "success"
else
echo "fail"
The only way I can tell whether insert successful or not is via sybase...
Hi guys,
I got an issue to find yesterday working day,
the working days is mon - fri,
so if today is monday 20080929, i need to get yesterday working days which is friday 20080926.
in linux GNU there is date --date'1 day ago', but now in UNIX there's no such thing...
can you guys help please...
hi guys,
I would like to print the output from file..
but I would like to cut out 3 lines from top and 2 lines from bottom..
is there any one liner here?
Thanks guys.
hi guys,
as title so the input like this..
a, b, c
12
345
ert, test
again
again
the expected output is :
a, b, c, 12, 345
ert, test, again, again
every three lines..
thanks heaps guys
Hi guys,
I got vim in directory /apps/solaris/bin and in that directory got vi symbolic link to vim
odyssey 3 Sep 16 01:06 vi -> vim
but if I type which vim,
/apps/solaris/bin/vim
which vi,
/usr/bin/vi
I would like to redirect vi to vim, but how come doesn't work?
but if I do...
Hi guys,
I was told by our system admin that we have remote server and 2 underlying server, here's by example :
server A -> remote server or dns alias
server A1 -> underlying server (resource server)
server A2 -> underlying server (failover server)
A
/ \
A1 A2
we always connect via...
Hi guys,
just wondering how to search deadlock in particular time in database and which query caused it?
I believe there's database log somewhere? can you help me how to find it?
do I need to be dbo_owner to execute it ?
Thanks guys,
Hi guys,
just wondering the easy way to find files later than particular timestamp :
ie :
I need to find file *.ksh after 05:05 in directory dir1
I know it might be simple for you..
Thanks guys,
hi,
just wondering whether you guys have used this kind the unix? seems like some command doesn't work in here.
I tried nslookup, the result is :
bash: nslookup: command not found
but if I type :
man nslookup
there is manual page about this, do you guys know how to make this command work...
Hi guys,
In linux,
it's always working with
find . -iname 'test'
what about in solaris 10
what's the command guys?
sometimes I find linux is much easier and handy...
Thanks
Hi guys,
I'm trying to tar up *.ksh, but not successful, the files are in different directory and in different level dir.
so this is what I tried :
find . -name "*.ksh" -exec tar -cf script.tar {} \;
but doesn't work..
the content of script.tar is the last file of the ksh list files..
any...
Hi guys,
I am struggling to find how to redirect output and stderr to screen and logfile ?
this is what I've done so far
start | tee /tmp/clearViewTrigger_start.log 2>&1
"start" is the name of function in the script
but the stderr did not go into the logfile.
Any help or idea ?
Hi guys,
Just wondering how do we wipe the source environment in the script :
so inside my script, there's code saying :
. funcs.sh
from procedure, I need to logout and login back.. to wipe the previous environment.
but I was just wondering how do we do this in script?
Thanks guys.
Hi guys,
I would like to setup suexec for my script, so I don't need to change permission and more secure
I know in linux, we can setup in /etc/sudoers file..
what about in unix Solaris 10,
Thanks guys,
Hi Guys,
I have a script that needs to be run once the linux box starts up, but I'm not 100% sure how to implement this.
This is what I know.
my scripts called : controlApps.ksh
but to call it.. I need to put parameter "start", because this script can be use to start and stop application.
so...
Hi guys,
I was wondering whether we can do dynamic in case options from a file :
for example in a file content like this :
step_first.ksh
step_second.ksh
step_third.ksh
so in normal static case selection it would look like this.
case "$SELECT" in
1) step_first.ksh ;;
2) step_second.ksh ...
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.