I’m trying to use setsockopt() on both Linux and Solaris in my ftp program. Linux uses a long for optvalue as a parameter, but Solaris uses a char instead. The program works fine in Linux, but reports “Invalid argument” in Solaris when creating the socket. Answer There are 2 issues appearing in the question: Linux uses a long for optvalue
Tag: solaris
Colorizing echo works in Solaris but doesn’t work in Linux
I have 2 different servers where I log in with same network user and run the same script. One is Solaris and another is Linux. Sample echo line from the script works differently on those servers: In Solaris -> it displays the text “auto update” correctly in green In Linux -> it displays the text incorrectly and with no color
Unix: List files with specific ending and show their size and date
I want to use ls -larth but I want to see only files that end with .dmp find . -name ‘*.dmp’ gives me the results of files, but I cannot see their dates and size. If possible, I would like to have them sorted by date. Thanks in advance. Regards, Danijel Answer
ssh does not return even after execution
The following ssh command does not return to terminal. It hangs though the execution is completed. The execution hangs after echo hi command. Output ciInstallAndRun.sh Source OS: Redhat Dest Os: Solaris 10 8/07 Any idea to fix this. Answer Any idea to fix this. Your installation script has spawned a child process. Add a ps -f or ptree $$ command
BASH syntax error at line 1: `then’ unmatched
Hi, I am having issues with this particular loop and couldn’t find a solution to it, any ideas why? Answer If you run the code through shellcheck and correct the errors which it shows (except for one problematic warning), the code will become: The code still seems to have issues, one of which is that it looks for duplicate user
Installing Perl DBI in SUN Solaries
I am trying to install perl DBI on SUN solaries 11 but I always got the following error: I did the following steps: Downloaded and extracted DBI-1.628 then in the shell command: Answer This means it cannot find a compiler on your machine. You should add the path to the compiler to your PATH variable. gcc and cc are not
Detect if a remote computer is Windows or Linux OS
I have IP Address and Server name of a remote computer. I am able to query WMI to get the OS version if the computer is running Windows but is there a way i can query the remote computer and get the OS version if the computer is not running Windows (Linux, Solaris)? Answer I guess Active Directory is going
passwordless ssh from linux to Solaris works for oracle user but not for ftpuser [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Replace the string/line after separator on specific param
I have the following Perl one liner code , My target is to replace the line after “=” separator, and that defined in PARAM variable But actually its replace all the line include the PARAM itself The expected results should be Please advice what need to fix in my Perl one liner code? other example that still not work: Answer
Equivalent lsof -i in Solaris
I have a fast question. I want to know what is the losf -i equivalent command in a Solaris system. I only want to show the files with network connection. Thank you!! Answer Here is a shell script that list all processes having open TCP or UDP ports on Solaris, you can limit it to a given port number by