Solaris 10 dual boot with BSD on virtualbox
Hi there, I am new to this operating system, so would like to ask for directions on how to go about doing Solaris 10 dual boot with freeBSD on a virtual machine (virtualbox). Do you have to partition...
View ArticleC shell - a qestion of a beginner
Hi, can someone explain how this aliases work: Code: alias m 'if ( \!:$ =~ *gz) set status = 1 && most \!:$ || gzcat \!:1 | most ' I mean, I know what it does, but I don't know how - what is...
View ArticleMatch values in awk
Having trouble modifying the below awk to match $1 of sample.txt to $1 of data.txt and if there is a match, then $2 of data.txt is copied to $7 of sample.txt. Thank you :). Code: awk 'NR==FNR{A[$1]=$1;...
View ArticleMoving SCO Virtual Machine in VMWare Environment: Critical Licensing Error...
Some years ago our company chose to run a critical proprietary app under SCO Unix. My predecessor tried to move A SCO Unix virtual machine from our dedicated VMWare environment to a shared Cloud VMWare...
View ArticleFolder Depth in Samba
A few of our users are adept at creating folders like Code: 2015\2015 something\event\2015 event\document\2015 which makes their documents close to impossible to find. Is there any way I can restrict...
View ArticleExecution problem with Cron: Script works manually but not w/Cron. Why?
Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in...
View ArticleSFTP or scp with password in a batch script without using SSH keys and expect...
Dear All, I have a requirement where I have to SFTP or SCP a file in a batch script. Unfortunately, the destination server setup is such that it doesn't allow for shell command line login. So, I am not...
View ArticleSFTP or scp by passing password as argument
Dear All, I have a requirement where I have to SFTP or SCP a file in a batch script. Unfortunately, the destination server setup is such that it doesn't allow for shell command line login. So, I am not...
View ArticleCUPS problems
I am running cups 2.0.2 on solaris 11, trying to get CUPS to report the page count of what was printed correctly. Right now I have the printer configured as post script both on solaris and on the...
View ArticleReplacing echo with print
Hi everyone, I'm executing a shell script and one of the commands is creating a file with text via echo. However, if the text within echo has "\t" or similar, it automatically translates it into a TAB...
View ArticleSFTP Multiple files
Hi :), I am new to Unix and Shell Script I have a urgent requirement, where i am new to shell script and Unix my requirement is I have a files in a folder like Code: sales-prod-India-details.txt...
View ArticleJava HTTP PUT Request/JSON Not Working But Using Python It Does ?
I have some code that I have been playing around with learning Java: Code: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream;...
View ArticleSequence of conditions awk
hello gurus, I want to use an associative array from a file to populate a field of another file, by matching several columns in order of priority. If the first column matches, then i dont want to match...
View ArticleHow to pass cat file in awk statment?
Hi, I am working on kernel parameters, want to check values under /proc/sys/kernel below I tried for kernel.sem Code: SEMMNS: 4096 cat /proc/sys/kernel/sem | awk '{print $2}' awk '{...
View ArticleBaisc commands in Solaris 10 not found
I just installed Solaris 10 on my virtual machine. firstly I want to complie a c program using gcc but "the gcc is not found" so I looked for a way and try to install the gcc and I tried the following...
View ArticleHow to scan for LUNs in SunOS sun4v sparc?
Hi everyone, We have the below sun Operating system, Now our storage team have Create a 500GB LUN for this server, How can i scan and mount the shared LUN ? Could anyone help me to resolve this issue....
View ArticleAdd new columns based on existing columns
Hi all, I am kind of stuck with printing my desired output. Please help me if you know how it can work. My input file(tab separated): Code: NW_0068.1 41,16 100,900 NW_0699.1 4,2,19 200,700,80 My...
View ArticleHelp with printing output format from a file
Hi, I need help in printing data in below format from file extensions with .dml, i have listed details below file name is test_temp.dml, location in /home/users/test01/test_temp.dml file content: Code:...
View ArticleScript for shutting down 48 computers
Hi All, I am pretty new to unix type languages. At work we have a server room with about 50 windows computers in one system and 50 in a unix system. We sometimes have power outages and I don't like the...
View ArticleSolaris 9 container on Solaris 11
Hi, We have server SPARC M10. It's come with Solaris 11. Is it possible to install solaris 9 container? We have database on old SPARC server. We want do HA for database. The database is oracle 9.2....
View Article