solaris Questions
5
Solved
Is there any way to rename a file while keeping the original creation / modification/ read time?
This is in Solaris.
Thanks in advance.
Gamester asked 21/6, 2011 at 8:24
9
Solved
I am working on a KornShell (ksh) script running on a Solaris server that will send out an email when and error condition is met. I am sending the email via mailx.
Question: How do I set the "Fro...
8
Solved
This is similar to (but different from) this question.
Here is some simple test code to illustrate some weirdness I have discovered with Sun CC:
//---------------main.cpp
#include "wtc.hpp"
int ...
Menswear asked 20/4, 2009 at 14:41
5
Is there a way to tie a network connection to a PID (process ID) without forking to lsof or netstat?
Currently lsof is being used to poll what connections belong which process ID. However ls...
Beata asked 8/5, 2009 at 5:8
13
So I log into a Solaris box, try to start Apache, and find that there is already a process listening on port 80, and it's not Apache. Our boxes don't have lsof installed, so I can't query with that...
3
Solved
14
Solved
Is there a faster way to remove a directory then simply submitting
rm -r -f *directory*
? I am asking this because our daily cross-platform builds are really huge (e.g. 4GB per build). So the ha...
19
Solved
How can I print the date which is a day before current time in Bash?
18
I'm looking for a quick and simple method for properly testing if a given TCP port is open on a remote server, from inside a Shell script.
I've managed to do it with the telnet command, and it wor...
4
I am building a unix package in which there is a script, according to the client requirements, script should run only once (not on daily basis). I am not sure how will it work?
I mean, do i need to...
7
I want to grep 2 patterns in a file on Solaris UNIX.
That is grep 'pattern1 OR pattern2' filename.
The following command does NOT work:
grep 'pattern1\|pattern2' filename
What is wrong with th...
1
Below are my environments that I am running my project which has C and CPP codes.
uname -a:
SunOS nzdrb12z 5.11 11.4.40.107.3 sun4v sparc sun4v non-global-zone
cc -V:
cc: Studio 12.6 Sun C 5.15 Sun...
3
Does anybody know from where I can get docker base image with Solaris OS in it?
I tried finding it on Dockerhub but couldn't find one.
Please provide me the detail 'dockerhost/namespace/imagename:t...
Werner asked 7/9, 2016 at 15:24
3
Solved
Given day of year, how can I get the week of year by using Bash?
7
Solved
Using this function:
perl -e 'use Time::Local; print timelocal("00","00","00","01","01","2000"),"\n";'
It will return an epochtime - but only in GMT - if i want the result in GMT+1 (which is the...
15
Solved
How do I edit a file in a single sed command? Currently, I have to manually stream the edited content into a new file and then rename the new file to the original file name.
I tried sed -i, but my ...
16
Solved
On Linux, I use stat --format="%s" FILE, but the Solaris machine I have access to doesn't have the stat command. What should I use then?
I'm writing Bash scripts and can't really install ...
8
I am running into this error while running my installer on a Solaris machine:
Installing...
-------------
[==================|==================|==================|==================]
[---Invoc...
Theone asked 15/1, 2014 at 7:55
2
When the listening backlog is full for STREAM unix-domain sockets, connect(2) fails on most systems with ECONNREFUSED. It would be preferable for it to return EAGAIN.
The reasoning is that it is h...
4
Solved
Can I execute command within another command in UNIX shells?
If impossible, can I use the output of the previous command as the input of next command, as in:
command x then command y,
where in c...
Chlorothiazide asked 19/9, 2010 at 14:28
4
Solved
I am running this small python script on both linux and Solaris as a not privileged user :
#!/usr/bin/python
import os
print 'uid,euid =',os.getuid(),os.geteuid()
Before running, the setuid bit ...
4
Solved
I'm on Solaris 10 (x86).
Until now, I was using python2.6. Today, I installed python2.7 and I have a weird error occuring when importing hashlib on 2.7, but not on 2.6:
Python 2.6:
root@myserver...
Horntail asked 5/12, 2013 at 11:53
1
I would like to install perl version 5.26.3 in host running with Solaris 11 using service account. The installation has to be done in Application file system or in user directory.
Please could some...
2
I've connected to Solaris 11 from my windows machine. I've set DISPLAY to my machine. And I'm using Java 8.
Note: This worked fine when using Java 6.
When I'm launching dialog then its button and...
3
Solved
I'm taking a look to the standard Ada POSIX binding, and the Florist implementation for GNAT. The aim is evaluating if a legacy application can be ported from its own use of pragma Import of the C ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.