Crontab Job Output File
I am a newbie to Unix. My default root user umask is set to 077 and I have the following crontab job to redirect al the backup output to the logfile of /backup/backup.xxxxx 00 10 * * 0...
View ArticleReplace 2nd Column
Dear All, I have data like this, input.txt Code: A 0B 1828 C 100D 1666,C 200D 1727,C 300D 1783, A 0B 1786 C 200D 1727,C 100D 1666,C 300D 1783, C 400D 1812,C 600D 1869,C 500D 1841, C...
View ArticleProblems with one line output
my echo $var1 gives below value Code: Code: 1.7_NEW=25,1.7_RETAINED=30,1.7_RETURNING=40 i want it in 3 different values.... i.e. as Code: Code: echo $1.7_NEW=25 echo...
View ArticleApplication behaving in 3 different ways on 3 different machines
Hello. During the holidays I've been developing an application on my desktop computer at home. I setup a repository on github, so when I got back to work I cloned the repo to my laptop. It wouldn't...
View ArticleSubtract 2 date columns in .csv file and get output as number of days
Hi, I have one .csv file. I have 2 date columns present in file, column 2 and column 3. I need to calculate how many days exist between 2 dates. I am trying to subtract date column 2 from date column...
View ArticleSolaris based project????
Hi friends, I am a Computer Science student, and about to do my final year project. I am a big lover of Solaris and SPARC RISC computers, and I want to work on those computers in future. I want to...
View ArticleConfigure Solaris 10 as a RADIUS Client
Hello, I have a solaris 10 U 8 and want it to authenticate any user against a remote RADIUS server and return it's appropriate privileges on the system First is it possible? and if yes, How I can do...
View ArticleAlternate for sed -i in AIX
Experts, At the moment I am working in AIX box where sed -i is not available. My requirement is as below Two files file1 and file2. file1 contains the IP address, its count. file2 contains the Hostname...
View ArticleHelp me with Pre Installation Steps for Patching on Solaris Servers
What are the Pre-installation steps for patching on Solaris servers in real time ? :confused:
View ArticleC - libxml - Get raw content
Hi everyone and happy new year, I'm currently on a project involving xml document parsing and I use the library libxml2. In my xml document I have this line (that only a test...): Code:...
View ArticlePulling Parms from Config File
Hello all, I'm working on a general script for something at work. I'm an up-and-comer backup for a Shell Scripter this company has had for 35 years lol. Anyway, I have a config file I'm trying to pull...
View ArticleSFTP Command Help - listing files
Ok I am just going to explain what I am running step by step Code: sftp user@hostname sftp > ls < when I run the command "ls" I get a long listing the old version, on the new version I get a...
View ArticleScript for telnet and run one command kill it and run another command using...
Code: ( sleep 3 echo ${LOGIN} sleep 2 echo ${PSWD} sleep 2 while read line do echo "$line" PID=$? sleep 2 kill -9 $PID done < temp sleep 5 echo "exit" ) | telnet ${HOST} while is...
View ArticleRevover root password
How can I recover root password :wall: 1) I am running Solaris 10 (X86) through VMware for practicing. 2) I was practicing root password recovery and deleted the password in /etc/shadow file. 3)...
View ArticleArray question
I have attempted to create an array consisting of two items: #0 and #1. I am able to print the two items corrctly: Code: arr=(hello "my name is") echo ${arr[0]} hello echo ${arr[1]} my name is However,...
View ArticleSendmail delivers mail to local user if it exists instead of passing it to...
Environment: SCO Unix Openserver 6 Sendmail ver: 8.11.3 I just put this server online replacing it's old counterpart, same OS on new machine. There are many different servers on this domain,...
View ArticleGREP for sorting
Hi , I have a file which has a large number of sequences of type: gi_1 AASSKSKSKSSKSKSK.... series_121 DDKFKFKGKGKH gi_3 FFFFLFFLFLFLF series_1 DFFFFFF pattern_3 GEEEEEEEEE gi_2 HKKGGKGKGK series_102...
View ArticleProblem using XLookupString
I am having trouble with the following function, giving the error Code: xbuplot.c: In function void xbuevent_(float*, float*, int*, char*): xbuplot.c:694:65: error: cannot convert XEvent* {aka...
View ArticleProblem with XStringListToTextProperty
I am having a problem with this code giving me Code: xbuplot.c: In function void xbuinit_(float*, float*): xbuplot.c:213:63: error: invalid conversion from const char** to char** [-fpermissive]...
View ArticleArray from cli input
I need to create a bash array from the command line parameters. I only know how to do it when I know the number of parameters. But what do I do when I dont know the number of parameters?
View Article