<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
	<title>UNIXForum.co.uk Forum Topics</title>
	<description>The best UNIX/Linux forum in the world!</description>
	<link>http://www.unixforum.co.uk/index.php</link>
	<pubDate>Tue, 09 Mar 2010 18:02:29 +0000</pubDate>
	<ttl>5</ttl>
	<item>
		<title>Tar Command</title>
		<link>http://www.unixforum.co.uk/topic/37739-tar-command/</link>
		<description><![CDATA[Hi,<br />
<br />
I'm executing the below command from user directory. user has the directory structure sys/aps/ess/mat/eut/web/cust/org/83422. 83422 directory has 10 files.<br />
<br />
tar -cvf xyz.tar sys/aps/ess/mat/eut/web/cust/org/83422/*<br />
<br />
It is generating xyz.tar with structure sys/aps/ess/mat/eut/web/cust/org/83422 but it has only one file and not 10 files.<br />
<br />
tried tar -cvf xyz.tar sys/aps/ess/mat/eut/web/cust/org/83422 too<br />
<br />
Thanks]]></description>
		<pubDate>Tue, 09 Mar 2010 18:02:29 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/37739-tar-command/</guid>
	</item>
	<item>
		<title><![CDATA[Weird 'ls' Output]]></title>
		<link>http://www.unixforum.co.uk/topic/37529-weird-ls-output/</link>
		<description><![CDATA[Hi, <br />
<br />
I need some urgent help. Anyone out there who knows why I can't display the contents of my directory (weird symbols appear) and how to fix this?<br />
<br />
Snapshot:<br />
<img src='http://i50.tinypic.com/4smfth.jpg' alt='Posted Image' class='bbc_img' /><br />
<br />
Thanks in advance for your kind advise.<br />
<br />
Deanne]]></description>
		<pubDate>Mon, 08 Mar 2010 11:12:24 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/37529-weird-ls-output/</guid>
	</item>
	<item>
		<title>Ls Sort</title>
		<link>http://www.unixforum.co.uk/topic/32883-ls-sort/</link>
		<description><![CDATA[I am using<br />
<pre class='prettyprint'>ls -lh --color | sort</pre><br />
witch doesn't sort names in files and directories. I have tried like <br />
<pre class='prettyprint'>ls -lh --color | sort -z</pre><br />
 but this riffle the directories and files together while names are sorted. I would like files and directories together but in this sort alphabetically. Thank you]]></description>
		<pubDate>Fri, 05 Mar 2010 07:37:37 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/32883-ls-sort/</guid>
	</item>
	<item>
		<title>Ha Cluster</title>
		<link>http://www.unixforum.co.uk/topic/37536-ha-cluster/</link>
		<description><![CDATA[Hello, sorry if I have chosen wrong topic.<br />
<br />
I have this pictire: Cluster consists of 2 nodes. Machines have different hardware (1- and 2- core processors) and kernels are 32- and 64-bit. Before building real cluster test model on Virtualbox was built - everything was fine. When I have set up a cluster on physical machines I've got some bugs. That's what I did:<br />
<br />
1. Connection, the synchronization of the two nodes - OK<br />
2. Making 1-st node master - ok<br />
3. Creating nodes on both file systems and mount points - ok<br />
4. Mounting the first node file system - OK<br />
5. Testing replication nodes - OK<br />
6. Starting heartbeat on both nodes - OK<br />
7. Starting httpd on 1-st node - OK (but a virtual host cannot be pinged and is not working as it should. Ifconfig in new device eth1: 0 is not displayed)<br />
<br />
And 2 following problems:<br />
<br />
1. When both nodes are running Apache (httpd) is not runnnng as it was before.<br />
2. when you restart the 1-th node: 2-nd cleanly takes all the processes and is pinged perfectly. On 1-st node startup the 2-nd cleanly gives all the rights to the 1st and becomes slave. But the first node is loaded as slave for some strange reason and does not become master. So I got slave / slave nodes.<br />
Daevaorn is online now Report Post   	Edit/Delete Message]]></description>
		<pubDate>Mon, 01 Mar 2010 14:28:17 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/37536-ha-cluster/</guid>
	</item>
	<item>
		<title>Allignment Of Lines In A File</title>
		<link>http://www.unixforum.co.uk/topic/32561-allignment-of-lines-in-a-file/</link>
		<description><![CDATA[Hi All,<br />
<br />
Please can somebody advise on how can I shift the last two lines 9 spaces to the right in a file using Sed command.<br />
<br />
Best Regards,<br />
Shazin]]></description>
		<pubDate>Thu, 25 Feb 2010 04:38:12 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/32561-allignment-of-lines-in-a-file/</guid>
	</item>
	<item>
		<title>Unix Shell</title>
		<link>http://www.unixforum.co.uk/topic/37334-unix-shell/</link>
		<description><![CDATA[Hi,<br />
<br />
Using unix shell, on the Xemacs editor I typed these:<br />
<br />
<br />
PARSER_BEGIN(cw1)<br />
/* Java declarations to be inserted by JavaCC  */<br />
<br />
/* Class declaration for cw1 used instead of default */<br />
public class cw1 {<br />
  public static void main(String args[]) throws ParseException {<br />
    System.out.println ("Type in tokens separated by white space (including newlines)");<br />
    System.out.println ("Type EOF to finish...(Ctrl-D on Unix, Ctrl-Z on PC)");<br />
    cw1 parser = new cw1(System.in);<br />
    parser.TokenList(); /* TokenList declared below */<br />
  }<br />
<br />
  public static int parseLiteral(String hex, int base)  {<br />
       int valchar=0, val=0, l;<br />
       char ch; <br />
       StringBuffer buf = new StringBuffer(hex);<br />
       l = buf.length();	    <br />
       for(int i=0; i &lt; l; i++) {<br />
	ch=buf.charAt(i);		<br />
	if (ch &gt;= '0' && ch &lt;= '9')		    <br />
	   valchar = ch-'0';<br />
	else if (ch &gt;= 'a' && ch &lt;= 'f')		    <br />
	     valchar = 10 + (ch-'a');		<br />
	else if (ch &gt;= 'A' && ch &lt;= 'F')		    <br />
	     valchar = 10 + (ch-'A');<br />
	else {<br />
	     System.out.println("Bad Char "+ch); // better trow an exception<br />
	     return -1;<br />
	}		<br />
	if (valchar &gt;= base) {		   <br />
	     System.out.println("Bad Char "+ch+" greater or equal than base "+base);<br />
	     return -1;<br />
        }	<br />
	val = val*base + valchar;	    <br />
       }	    <br />
      return val;	<br />
  }<br />
<br />
}<br />
<br />
<br />
PARSER_END(cw1)<br />
<br />
/* <br />
 * Lexical items. <br />
 */<br />
<br />
SKIP : /* WHITE SPACE */<br />
{<br />
  " "<br />
| "&#092;t"		/* Tab */<br />
| "&#092;n"		/* Newline */<br />
| "&#092;r"		/* Return */<br />
| "&#092;f"		/* Formfeed */<br />
}<br />
<br />
TOKEN : /* Integers literals */<br />
{<br />
  &lt; INTEGER_LITERAL: "0" | (["1"-"9"] (&lt;DIGIT&gt;)*) &gt;<br />
}<br />
<br />
TOKEN : /* Identifiers. */<br />
{<br />
  &lt; IDENTIFIER: &lt;LETTER&gt; (&lt;LETTER&gt;|&lt;DIGIT&gt;)* &gt;<br />
}<br />
<br />
TOKEN :<br />
{<br />
 &lt; HORROR: (~[  " ", "&#092;t", "&#092;n", "&#092;r", "&#092;f"])+  &gt;<br />
}<br />
<br />
<br />
TOKEN : /* Definitions for use in other lexical definitions <br />
           (signified by the `#'). */<br />
{<br />
  &lt; #LETTER: [ "a"-"z", "A"-"Z" ] &gt;<br />
|<br />
  &lt; #DIGIT: [ "0"-"9"] &gt;<br />
}<br />
<br />
/*<br />
 * A simple grammar to match tokens and print them.<br />
 */<br />
<br />
void TokenList() :<br />
{Token t; int val;}<br />
{<br />
   ( { val = 0;}<br />
     (t = &lt;INTEGER_LITERAL&gt; | t = &lt;IDENTIFIER&gt; | t=&lt;HORROR&gt; )<br />
     // Code executed after any match to tokens above<br />
     { System.out.print(tokenImage[t.kind]+" (`"+t.image+"') "); <br />
       switch(t.kind)  {<br />
         case INTEGER_LITERAL:<br />
             val = cw1.parseLiteral(t.image,10);<br />
	     System.out.println(" value = "+val); <br />
	     break;<br />
	 default:<br />
	     System.out.println(" "); // new line<br />
       } <br />
     }<br />
   )* &lt;EOF&gt;<br />
}<br />
<br />
<br />
and once I clicked saved, on unix shell. It runs perfectly, but when I type 12 +34 -22 it show say <br />
INTEGER_LITERAL&gt; (`12') value = 12<br />
INTEGER_LITERAL&gt; (`+34') value = 34<br />
INTEGER_LITERAL&gt; (`-45') value = -45<br />
<br />
and other problem, <br />
<br />
with input “12 sbbc287 sbbc286<br />
86” must produce the following output:<br />
&lt;INTEGER_LITERAL&gt; (`12') value = 12<br />
"sbbc287" (`sbbc287')<br />
&lt;IDENTIFIER&gt; (`sbbc286')<br />
IN2009 Language Processors (2009/2010)<br />
&lt;INTEGER_LITERAL&gt; (`86') value = 86<br />
<br />
<br />
For example, if id was sbbc287, the strings:<br />
sbbc287287 sbbcsbbc287sbbc287287 sbbc287287287287<br />
should be recognised as token MIYD2. <br />
The parser should report MYID. Thus, given input “sbbc287287 sbbc287<br />
sbbcsbbc287”, my parser should produce the following output:<br />
&lt;MYID2&gt; (`sbbc287287')<br />
"sbbc287" (`sbbc287')<br />
&lt;MYID2&gt; (`sbbcsbbc287')<br />
<br />
<br />
one last problem<br />
<br />
Given id sbbc287, the following strings are<br />
valid MYID3 token elements:<br />
sbbc2287 sbbc222287 sbbc22287 sbbc2222222287<br />
sbbc2887 sbbc288887 sbbc28887 sbbc2888888887<br />
sbbc2877 sbbc287777 sbbc28777 sbbc2877777777<br />
<br />
By typing sbbc2228887 should say is not valid. <br />
<br />
Please help.]]></description>
		<pubDate>Sun, 21 Feb 2010 23:48:08 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/37334-unix-shell/</guid>
	</item>
	<item>
		<title>Lock The File In Linux</title>
		<link>http://www.unixforum.co.uk/topic/33274-lock-the-file-in-linux/</link>
		<description><![CDATA[Hi,<br />
<br />
  I want to lock the file in linux and the file cannot be edit or modify by other .I know in perl, there is function flock , but it is not worked.<br />
<br />
The file can be modifed and edit even if it is locked by flock .<br />
<br />
Any other way to lock the file and so other cannot edit or modifed it ????<br />
<br />
Any similar fucntion in perl ????<br />
<br />
How to make "file busy" error by perl in linux ???<br />
Any suggestion ???<br />
<br />
<br />
thank]]></description>
		<pubDate>Sat, 20 Feb 2010 05:16:39 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/33274-lock-the-file-in-linux/</guid>
	</item>
	<item>
		<title>Grep In Script - Problem</title>
		<link>http://www.unixforum.co.uk/topic/33339-grep-in-script-problem/</link>
		<description><![CDATA[Hi,<br />
<br />
I have written the following shell script -<br />
<br />
Error_String="error"<br />
var1="| grep -v note1 | grep -v note2"<br />
grep -i $Error_String /users/mqm/Pwork/Err/*.out $var1<br />
<br />
<br />
The above script gives error saying "grep: can't open |<br />
grep: can't open grep<br />
grep: can't open -v" etc<br />
<br />
In my program note1 and note2 strings are dynamically generated, so I cannot hardcode those in grep command.<br />
<br />
Could anyone please help me to resolve this problem<br />
<br />
Thanks in advance,<br />
Prasanna]]></description>
		<pubDate>Sat, 20 Feb 2010 05:04:49 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/33339-grep-in-script-problem/</guid>
	</item>
	<item>
		<title>How To Display Special Characters In Unix</title>
		<link>http://www.unixforum.co.uk/topic/33594-how-to-display-special-characters-in-unix/</link>
		<description><![CDATA[Hi,<br />
<br />
      In my file, there are special characters including any hidden characters which are non alpha-numeric characters and delimietr. If there are any other characters apart from alpha-numeric characters and delimiter, it shud note that the file is a bad file. I have tried this by using the below command but it didnt work.  Here, I dont want to replace the characters, I just need to see whether the file has any special characters including any hidden charcters. <br />
<br />
grep '/[^0-9a-zA-Z]/' abc.txt<br />
<br />
Any help would be helpful...<br />
<br />
Thanks.]]></description>
		<pubDate>Fri, 19 Feb 2010 12:35:27 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/33594-how-to-display-special-characters-in-unix/</guid>
	</item>
	<item>
		<title><![CDATA[Change File Extension Case [Help]]]></title>
		<link>http://www.unixforum.co.uk/topic/35334-change-file-extension-case-help/</link>
		<description><![CDATA[Hello, I need to make shell script to change file extension case. <br />
I have done a bit, but I am relatively new to scripting and I have some problems.<br />
My goal is to make this script work like this:<br />
<br />
Code:<br />
<br />
<pre class='prettyprint'>sh myshellscriptname.sh temporaryfolder temporaryfile filecase1 filecase2</pre><br />
<br />
EXAMPLE: <strong class='bbc'>sh script.sh test file.txt txt TXT</strong> -&gt; it would make a folder called <strong class='bbc'>test</strong>, a file with the name <strong class='bbc'>file.txt</strong> and then change <strong class='bbc'>.txt to .TXT</strong> or vice versa and when i press <strong class='bbc'>CTRL + C </strong>- then the temporary file and folder will be deleted and work will be finished.<br />
<br />
<strong class='bbc'>My try:</strong><br />
<pre class='prettyprint'>#!/bin/bash

----------Dont know exactly but my code ---
touch &gt; /tmp/newfilename
umask 077 && mkdir /tmp/tempdir.$$)
exit 2
----------------------------------------

usage () {
    echo
    echo "Usage: `basename $0` &lt;search dir&gt; &lt;old ext&gt; &lt;new ext&gt;"
    echo
}
 
if &#91; -z "$3" &#93;; then
    usage
    exit 1
fi
 
OLDEXT=${2/#.}
NEWEXT=${3/#.}

find "${1}" -iname "*.${OLDEXT}" |
while read F
do
  NEWFILE="${F/%${OLDEXT}/${NEWEXT}}"
  echo "mv &#092;"${F}&#092;" &#092;"${NEWFILE}&#092;""
  mv -f "${F}" "${NEWFILE}"
done 
 
exit 0</pre><br />
<br />
Thanks.]]></description>
		<pubDate>Fri, 19 Feb 2010 12:27:38 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/35334-change-file-extension-case-help/</guid>
	</item>
	<item>
		<title>nslookup in crontab</title>
		<link>http://www.unixforum.co.uk/topic/29688-nslookup-in-crontab/</link>
		<description><![CDATA[Hi All,<br />
<br />
I want to put a cron entry with nslookup in there..<br />
<br />
but its giving me error for using nslookup.<br />
<br />
Is there any rule for crontab which dosent include nslookup?<br />
<br />
Thanks,<br />
Darshak R]]></description>
		<pubDate>Fri, 19 Feb 2010 07:02:14 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/29688-nslookup-in-crontab/</guid>
	</item>
	<item>
		<title>Subtracting 1 From An Entire Numeric File</title>
		<link>http://www.unixforum.co.uk/topic/36288-subtracting-1-from-an-entire-numeric-file/</link>
		<description><![CDATA[Hi everyone,<br />
<br />
I want to simply subtract everything in my file by 1, where:<br />
<br />
&lt;file in&gt; looks like:<br />
<br />
2 1 1 1 2<br />
1 2 2 2 1<br />
2 1 1 2 1<br />
1 1 1 2 1<br />
2 2 2 2 2<br />
<br />
and &lt;file out&gt; would look like:<br />
<br />
1 0 0 0 1<br />
0 1 1 1 0<br />
1 0 0 1 0 <br />
0 0 0 1 0 <br />
1 1 1 1 1<br />
<br />
Any suggestions?]]></description>
		<pubDate>Thu, 18 Feb 2010 23:33:10 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/36288-subtracting-1-from-an-entire-numeric-file/</guid>
	</item>
	<item>
		<title>Symbolic Links Forbidden Error Permission - Help Me .. ?</title>
		<link>http://www.unixforum.co.uk/topic/34899-symbolic-links-forbidden-error-permission-help-me/</link>
		<description><![CDATA[<strong class='bbc'>I'm getting this error made in operation</strong><br />
<br />
<strong class='bbc'>SampLe : ln -s /home/user/public_html/index.php index.txt - index.txt u---------   0 index.txt i dont read for index.txt .. why ? relevance of this posix_eval there is , english a little bad  sorry</strong>]]></description>
		<pubDate>Thu, 18 Feb 2010 12:03:42 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/34899-symbolic-links-forbidden-error-permission-help-me/</guid>
	</item>
	<item>
		<title><![CDATA[Help With And (&#38;&#38;)]]></title>
		<link>http://www.unixforum.co.uk/topic/37180-help-with-and/</link>
		<description><![CDATA[Hello<br />
  I am trying to do a while loop that exits on one of two conditions.  I keep having errors regardless of weather or not i use &&, -a, &gt;, -gt and so on.<br />
Any help would be greatly appreciated.<br />
Folloing are the while loops and their coresponding error message.<br />
Thanks<br />
<br />
<pre class='prettyprint'>while &#91; $counter -gt "0" && $a1 -ne $ans &#93;
do
  ...
done</pre><br />
missing `]'<br />
<br />
<pre class='prettyprint'>while &#91; $counter -gt "0" &#93; && &#91; $a1 -et $ans &#93;
do
  ...
done</pre><br />
too many arguments<br />
<br />
<pre class='prettyprint'>while &#91; $counter -gt "0" -a $a1 -et $ans &#93;
do
  ...
done</pre><br />
too many arguments<br />
<br />
<pre class='prettyprint'>while &#91; $counter -gt "0" &#93; -a &#91; $a1 -et $ans &#93;
do
  ...
done
</pre>too many arguments]]></description>
		<pubDate>Thu, 18 Feb 2010 10:09:39 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/37180-help-with-and/</guid>
	</item>
	<item>
		<title>Find The File Names Based On Name From Directory</title>
		<link>http://www.unixforum.co.uk/topic/36594-find-the-file-names-based-on-name-from-directory/</link>
		<description><![CDATA[Hi experts, <br />
<br />
I would like to write a shell script that can print the file name from directory.Not required to see the contents.<br />
<br />
Ex :<br />
<br />
directory will have 5 files with different name.No matter what contents are.<br />
<br />
Now I need to find the file which will have particular name (sub string ).Please do not look into contents.It should be in loop to check all the file names<br />
<br />
Please provide the shell script.<br />
<br />
Please let me know if any one need more info.]]></description>
		<pubDate>Thu, 18 Feb 2010 09:41:57 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/36594-find-the-file-names-based-on-name-from-directory/</guid>
	</item>
	<item>
		<title>Re: string is not an identifier</title>
		<link>http://www.unixforum.co.uk/topic/121-re-string-is-not-an-identifier/</link>
		<description><![CDATA[Dear all,<br />
<br />
  I have a file "abc" with the content shown below in Sun Solaris 8:<br />
<br />
NYK_HBUS_G_FX_1<br />
NYK_HBUS_L_PCD_1<br />
NYK_HBUS_R_BAR_1<br />
NYK_HBUS_R_CAPFLOOR_1<br />
NYK_HBUS_R_FXO_1<br />
NYK_HBUS_R_FXO_2<br />
NYK_HBUS_R_FXO_3<br />
NYK_HBUS_R_SWAPTION_1<br />
NYK_HBUS_R_SWAPTION_10<br />
NYK_HBUS_R_SWAPTION_11<br />
NYK_HBUS_R_SWAPTION_12<br />
NYK_HBUS_R_SWAPTION_13<br />
NYK_HBUS_R_SWAPTION_14<br />
NYK_HBUS_R_SWAPTION_15<br />
NYK_HBUS_R_SWAPTION_16<br />
NYK_HBUS_R_SWAPTION_2<br />
NYK_HBUS_R_SWAPTION_3<br />
NYK_HBUS_R_SWAPTION_4<br />
NYK_HBUS_R_SWAPTION_5<br />
NYK_HBUS_R_SWAPTION_6<br />
NYK_HBUS_R_SWAPTION_7<br />
NYK_HBUS_R_SWAPTION_8<br />
NYK_HBUS_R_SWAPTION_9<br />
NYK_HBUS_S_SWAP_1<br />
NYK_HBUS_S_SWAP_2<br />
NYK_HBUS_S_SWAP_3<br />
NYK_HBUS_S_SWAP_4<br />
NYK_HBUS_S_SWAP_5<br />
NYK_HBUS_S_SWAP_6<br />
NYK_HBUS_S_SWAP_7<br />
NYK_HBUS_S_ZCB_1<br />
NYK_HBUS_S_ZCB_2<br />
NYK_HBUS_S_ZCB_3<br />
NYK_HBUS_T_FRA_1<br />
NYK_HBUS_T_FX_1<br />
NYK_HBUS_T_FX_10<br />
NYK_HBUS_T_FX_11<br />
NYK_HBUS_T_FX_12<br />
NYK_HBUS_T_FX_13<br />
NYK_HBUS_T_FX_14<br />
NYK_HBUS_T_FX_15<br />
NYK_HBUS_T_FX_16<br />
NYK_HBUS_T_FX_17<br />
NYK_HBUS_T_FX_18<br />
NYK_HBUS_T_FX_19<br />
NYK_HBUS_T_FX_2<br />
NYK_HBUS_T_FX_3<br />
NYK_HBUS_T_FX_4<br />
NYK_HBUS_T_FX_5<br />
NYK_HBUS_T_FX_6<br />
NYK_HBUS_T_FX_7<br />
NYK_HBUS_T_FX_8<br />
NYK_HBUS_T_FX_9<br />
NYK_HBUS_T_SWAP_1<br />
NYK_HBUS_X_ZCB_1<br />
REG_HBUS_CSACM<br />
<br />
  and I use the script shown below to construct a string:<br />
<br />
#!/bin/ksh<br />
for i in &#96;cat abc &#96;<br />
      do<br />
<br />
         TMPPARAM="$TMPPARAM $i "<br />
<br />
      done<br />
<br />
  But it returned a error when the script is executed:<br />
<br />
/home/user/string.sh[4]: NYK_HBUS_G_FX_1 NYK_HBUS_L_PCD_1 NYK_HBUS_R_BAR_1 NYK_HBUS_R_CAPFLOOR_1 NYK_HBUS_R_FXO_1 NYK_HBUS_R_FXO_2 NYK_HBUS_R_FXO_3 NYK_HBUS_R_SWAPTION_1 NYK_HBUS_R_SWAPTION_10 NYK_HBUS_R_SWAPTION_11 NYK_HBUS_R_SWAPTION_12 NYK_HBUS_R_SWAPTION_13 NYK_HBUS_R_SWAPTION_14 NYK_HBUS_R_SWAPTION_15 NYK_HBUS_R_SWAPTION_16 NYK_HBUS_R_SWAPTION_2 NYK_HBUS_R_SWAPTION_3 NYK_HBUS_R_SWAPTION_4 NYK_HBUS_R_SWAPTION_5 NYK_HBUS_R_SWAPTION_6 NYK_HBUS_R_SWAPTION_7 NYK_HBUS_R_SWAPTION_8 NYK_HBUS_R_SWAPTION_9 NYK_HBUS_S_SWAP_1 NYK_HBUS_S_SWAP_2 NYK_HBUS_S_SWAP_3 NYK_HBUS_S_SWAP_4 NYK_HBUS_S_SWAP_5 NYK_HBUS_S_SWAP_6 NYK_HBUS_S_SWAP_7 NYK_HBUS_S_ZCB_1 NYK_HBUS_S_ZCB_2 NYK_HBUS_S_ZCB_3 NYK_HBUS_T_FRA_1 NYK_HBUS_T_FX_1 NYK_HBUS_T_FX_10 NYK_HBUS_T_FX_11 NYK_HBUS_T_FX_12 NYK_HBUS_T_FX_13 NYK_HBUS_T_FX_14 NYK_HBUS_T_FX_15 NYK_HBUS_T_FX_16 NYK_HBUS_T_FX_17 NYK_HBUS_T_FX_18 NYK_HBUS_T_FX_19 NYK_HBUS_T_FX_2 NYK_HBUS_T_FX_3 NYK_HBUS_T_FX_4 NYK_HBUS_T_FX_5 NYK_HBUS_T_FX_6 NYK_HBUS_T_FX_7 NYK_HBUS_T_FX_8 NYK_HB<br />
US_T_FX_9 NYK_HBUS_T_SWAP_1 NYK_HBUS_X_ZCB_1 REG_HBUS_CSACM: is not an identifier<br />
Segmentation Fault(coredump)<br />
<br />
  So, what is the problem?<br />
<br />
Regards,<br />
Joe]]></description>
		<pubDate>Thu, 18 Feb 2010 07:48:32 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/121-re-string-is-not-an-identifier/</guid>
	</item>
	<item>
		<title>Gibberish When Unzipping Files In Putty</title>
		<link>http://www.unixforum.co.uk/topic/37238-gibberish-when-unzipping-files-in-putty/</link>
		<description><![CDATA[Hello. I'm ingesting files from one system (db hosted on Solaris 10) to another (db hosted on Solaris 9). Files come in zipped, and contain various txt files, which I'll use SQL*Loader to load.<br />
<br />
The unzipping, loading etc. is all handled in a ksh shell script. Sadly, we use Putty for all our unix work (and that's part of the problem I think). The files normally arrive at the target host in pairs. When I try to unzip the files, a load of gibberish is sent to the screen. Like this:<br />
<br />
mv: cannot access C/$tf_peo_deals_1to1_20100121080000.txtíZ[oÛ8~`þ{2HÝ][m8¶×v:Í¡ØL¢©-²ü~¤dù¶ÈNçO:&lt;¢(òð|&lt;Wi:n&íÎ´7Ìz]9Åe9÷®f_OãñdÖG3ê§ÎÞh8<br />
<br />
(that's only a fragment. The whole thing is like Lord of the Rings.)<br />
<br />
This is a problem as we have associated trace files which our ops guys need to look at, and they're filling up to monstrous sizes with these strange characters. At a guess, I'd say this is due to differing character sets on the source and target machines, but I haven't a clue about how to resolve this.<br />
<br />
Has anyone seen this before? Any feedback would be gratefully received.<br />
<br />
Strangely, I don't see this problem when there is just one file to process, which is sad, as that's never the case.<br />
<br />
Thanks,<br />
Ray]]></description>
		<pubDate>Wed, 17 Feb 2010 15:20:40 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/37238-gibberish-when-unzipping-files-in-putty/</guid>
	</item>
	<item>
		<title>Close/shutdown The Sun Cluster Package/resource Group</title>
		<link>http://www.unixforum.co.uk/topic/37019-closeshutdown-the-sun-cluster-packageresource-group/</link>
		<description><![CDATA[Hi,<br />
I have a SUN cluster system.<br />
I want to know what script do when the SUN cluster shutdown the package "app-gcota-rg" as I may need to modify it ?? Where can I find out this information in the system??<br />
In which directory and log file ???<br />
Any suggestion ???<br />
Resource Groups --<br />
<br />
Group Name Node Name State<br />
---------- --------- -----<br />
Group: ora_gcota_rg ytgcota-1 Online<br />
Group: ora_gcota_rg ytgcota-2 Offline<br />
<br />
Group: app-gcota-rg ytgcota-1 Online<br />
Group: app-gcota-rg ytgcota-2 Offline]]></description>
		<pubDate>Mon, 08 Feb 2010 12:11:58 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/37019-closeshutdown-the-sun-cluster-packageresource-group/</guid>
	</item>
	<item>
		<title>2Lx-4T Pci-X Network Card Problem On Redhat 5</title>
		<link>http://www.unixforum.co.uk/topic/37014-2lx-4t-pci-x-network-card-problem-on-redhat-5/</link>
		<description><![CDATA[Hello all,<br />
<br />
i have fresh installation of RedHat 5.4 x86_64 on X3550 M2 machine.<br />
we've bought an advance network card 2LX-4T PCI-X, including PCI-X riser card which enable the option to connect this net card to our machine board.<br />
<br />
now, when the machine booted, i can see green light on the led, but i'm unable to communicate with the network card.<br />
lspci show some PCI bridge to PCI/PCI-X which supposed to be to riser card, but i dont see any information about the network card (which is 4 quads).<br />
<br />
does anyone has any idea if i should see the network card at lspci? how can i know which modules i need to load in order this network card will be recognize.<br />
<br />
i have also broadcom network adapter (2 ports), and cheilso network adapter (2 ports) which works.<br />
so i have eth0-eth3 with the right modules (bnx2-broadcom, cgxt3- cheilso).<br />
<br />
what should i do to enable the 2LX-4T card?<br />
<br />
Thanks a lot for your help!<br />
<br />
L]]></description>
		<pubDate>Sun, 07 Feb 2010 19:13:51 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/37014-2lx-4t-pci-x-network-card-problem-on-redhat-5/</guid>
	</item>
	<item>
		<title><![CDATA[&#34;startx&#34; By Non-Root User Account In Red Hat Linux Kernel 2.6]]></title>
		<link>http://www.unixforum.co.uk/topic/36908-startx-by-non-root-user-account-in-red-hat-linux-kernel-26/</link>
		<description><![CDATA[How can I use the command "startx" by other user account such as "oracle" ??<br />
I cannot startx by user account oracle ??<br />
How to fix it ???<br />
Any adivce ???<br />
I use red hat linux kernel 2.6<br />
<br />
<pre class='prettyprint'>&#91;oracle@localhost ~&#93;$ startx


Fatal server error:
PAM authentication failed, cannot start X server.
        Perhaps you do not have console ownership?


Please consult the The X.Org Foundation support
         at http://wiki.X.Org
 for help.


&#91;1&#93;+  Stopped                 startx
&#91;oracle@localhost ~&#93;$</pre>]]></description>
		<pubDate>Wed, 03 Feb 2010 13:18:16 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/36908-startx-by-non-root-user-account-in-red-hat-linux-kernel-26/</guid>
	</item>
	<item>
		<title>Change Shutdwon Seq In Red Hat Linux</title>
		<link>http://www.unixforum.co.uk/topic/36783-change-shutdwon-seq-in-red-hat-linux/</link>
		<description><![CDATA[Hi,<br />
 I use red hat linux kernel 2.6<br />
I want to add the application shutdown in shutdown sequence .<br />
I add the K script in /etc/rc.d/ all sub directory for all<br />
running level .<br />
But the auto shutdown application is not appear when<br />
I type "shutdown -r now" ..<br />
There is no indication the application shutdown in the <br />
display ...<br />
The shutdown seq is hang/stop and I need to shutdown the application <br />
by command manually .Then the shutdown process can be continue ....<br />
<br />
Why ??/<br />
how can I change the shutdown seq ???<br />
Any advice ...]]></description>
		<pubDate>Fri, 29 Jan 2010 02:33:31 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/36783-change-shutdwon-seq-in-red-hat-linux/</guid>
	</item>
	<item>
		<title>Exchange Column</title>
		<link>http://www.unixforum.co.uk/topic/36683-exchange-column/</link>
		<description><![CDATA[Hello,<br />
     I have a little question,<br />
       <br />
       2233|charles harris  |g.m.     |sales     |12/12/52| 90000<br />
       9876|bill johnson    |director |production|03/12/50|130000<br />
       5678|robert dylan    |d.g.m.   |marketing |04/19/43| 85000<br />
       2365|john woodcock   |director |personnel |05/11/47|120000<br />
<br />
       What command (or commands) should I use to exchange <br />
       surname in the third column by inserting a comma between them.<br />
       Records in the result obtained must be of type<br />
       2233|harris, charles |g.m.     |sales     |12/12/52| 90000<br />
<br />
    &#1058;hanks in advance !]]></description>
		<pubDate>Mon, 25 Jan 2010 21:08:48 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/36683-exchange-column/</guid>
	</item>
	<item>
		<title>Get File Directory</title>
		<link>http://www.unixforum.co.uk/topic/36342-get-file-directory/</link>
		<description><![CDATA[Hi all, I'm new in unix. I just want to write script which will find and print all directories where exists 'somefile'?<br />
<br />
Thank you in advance.]]></description>
		<pubDate>Mon, 11 Jan 2010 09:37:50 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/36342-get-file-directory/</guid>
	</item>
	<item>
		<title>Calling Cpp Member Function From C Did Not Really Execute Correctly</title>
		<link>http://www.unixforum.co.uk/topic/36262-calling-cpp-member-function-from-c-did-not-really-execute-correctly/</link>
		<description><![CDATA[Good Day Everyone, <br />
<br />
I am stucked with my project here. <br />
<br />
I have our own C written program code which is communicating with a third party C++ written program code to run a moving device. <br />
<br />
We have successfully communicated with the third party code with wrapper functions. <br />
<br />
Now, we tried to run some functions to move the device. I think it is better for me to attach the related code first. <br />
<br />
pro.c (The source code we used to run the device) <br />
<pre class='prettyprint'>#include &lt;stdio.h&gt;
#include "wrapper.h" 

int main ()
{
        int  pro=0; 

        libInit(); 
        pro = PROconnectTo Device((char*) "192.168.1.87");
        printf("&#092;nDevice Connected, Return Code = %d&#092;n",pro); 

        pro = PROinitializeAndCalibrate (); 
        printf("&#092;nDevice Initialized and Calibrated, Return Code = %d&#092;n",pro); 
        
        pro = PROtakeTool (1); 
        printf("&#092;nDevice Take Tool, Return Code = %d&#092;n",pro); 

        PROdisconnectDevice(); 
        printf("&#092;nDevice Disconnected&#092;n"); 

        libClose(); 

        return pro; 
}</pre><br />
<br />
wrapper.cpp (Source code needed to communicate between C and C++ code)<br />
<pre class='prettyprint'>#include &lt;iostream&gt;
#include "ProjectApplication.h"
#include "wrapper.h"

ProjectApplication *w; 

int    libInit (void)
{
        w = new ProjectApplication; 
        return 0; 
}

int    PROinitializeAndCalibrate (void) 
{
        return  w-&gt;initializeAndCalibrate(); 
}

int    PROtakeTool (unsigned int  PROtool)
{
        unsigned int    tool; 
        tool = PROtool; 
 
        return  w-&gt;takeTool(tool); 
}

int    PROconnectToDevice (char* PROipAddr)
{
        char* ipAddr; 
        ipAddr = PROipAddr; 

        return  w-&gt;connectToDevice(ipAddr); 
}

void  PROdisconnectDevice (void) 
{
        return  w-&gt;disconnectDevice(); 
}

void  libClose (void) 
{
        delete  w; 
        return; 
}</pre><br />
<br />
After debugging, we will run "./pro". <br />
<br />
The device is successfully connected and moved according to the statement in "initializeAndCalibrate ()" and return no error. Then, it turns to "takeTool (1)". The function did called successfully, we also get a return value of 0 that means no error. But, the device is not moving at all. The device then disconnect straight away and exiting the routine of "main()". <br />
<br />
THe execution of statement in routine "main()" pause a while after it call "initializeAndCalibrate ()" until the device finish the movement before it execute the next statement. <br />
<br />
After that, no more. Other statements just run so fast and it exit the program with all the statements it executed returned no error. <br />
<br />
We are confirmed that there is no problem with the hardware that is the device and the third party software as we test run it before using other test tool and it works well. <br />
<br />
We have been finding around for all possible causes for this problem but we just can't get the right one. <br />
<br />
Hoping there is someone that can give us some ideas. <br />
<br />
Thank you very much.]]></description>
		<pubDate>Thu, 07 Jan 2010 09:30:36 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/36262-calling-cpp-member-function-from-c-did-not-really-execute-correctly/</guid>
	</item>
	<item>
		<title>Adding Trailing Spaces To A Record</title>
		<link>http://www.unixforum.co.uk/topic/36053-adding-trailing-spaces-to-a-record/</link>
		<description><![CDATA[Hello!<br />
<br />
I am trying to create a file record with following format:<br />
ABC           &lt;spaces till end of record&gt;<br />
<br />
I wanted to create this record of length 2148. But everytime (using many shell commands: typeset/cat/cut etc) the spaces stops at column 2054.<br />
If I try to use a longer length (say 2250), then the spaces stops at column 2212. And when I gave 2200, it stops at same 2054.<br />
<br />
There seems to be a limit to print number of spaces at the end of a record. Any idea what can I do?]]></description>
		<pubDate>Tue, 29 Dec 2009 07:22:15 +0000</pubDate>
		<guid>http://www.unixforum.co.uk/topic/36053-adding-trailing-spaces-to-a-record/</guid>
	</item>
</channel>
</rss>