Reg: execution of tail statement in PUTTY


 
Thread Tools Search this Thread
Operating Systems HP-UX Reg: execution of tail statement in PUTTY
# 1  
Old 09-21-2006
Reg: execution of tail statement in PUTTY

We are using PUTTY to connect to Remote Unix Server. When I run the following shell script statement, I do not get the desired output.
tail -num test.txt > test.out
here "num" is any number for example say as 2000.
What happens is..test.out contains around 400 rows only out of 2000. It truncates remaining data.
It happens only when I connect to a particular Unix server, on which we need work.
If I run the same statement by connecting to other unix server, it works fine.

Can anybody tell me ..is this a privilege problem or something else?

Actually, this tail statement is part of some shell script file and because of that particular statement, we are not getting the desired output.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX Sqlplus - Capture the sql statement about to run and execution status

Greetings Experts, I am on AIX using ksh. Created a unix script which generates the CREATE OR REPLACE VIEW ... and GRANT .. statements, which are placed in a single .txt file. Now I need to execute the contents in the file (there are around 300 view creation and grant statements) in Oracle and... (4 Replies)
Discussion started by: chill3chee
4 Replies

2. Shell Programming and Scripting

Convert Update statement into Insert statement in UNIX using awk, sed....

Hi folks, I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex. I have a bunch of update statements with all columns in a file which I need to convert into insert statements. UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
0 Replies

3. Shell Programming and Scripting

Joining multiple files tail on tail

I have 250 files that have 16 columns each - all numbered as follows stat.1000, stat.1001, stat.1002, stat.1003....stat.1250. I would like to join all 250 of them together tail by tail as follows. For example stat.1000 a b c d e f stat.1001 g h i j k l So that my output... (2 Replies)
Discussion started by: kayak
2 Replies

4. Shell Programming and Scripting

Execution problem with IF statement

Hi, I am trying to execute the below statment in my script.am getting the error as " syntax error near unexpected token 'else'. Is If statement is correct. if ]; then if ]; then cp $src_dir/import-serv/$q_dirs*.txt $tgt_dir/$q_dirs/import-serv/ else cdsgq_dir=`echo... (3 Replies)
Discussion started by: kirankumar
3 Replies

5. Shell Programming and Scripting

Expect Issue Serial Forground Execution vs Concurrent Background Execution

I have an expect script that interrogates several hundred unix servers for both access and directories therein using "ssh user@host ls -l /path". The combination of host/path are unique but the host may be interrogated multiple times if there are multiple paths to test. The expect script is run... (2 Replies)
Discussion started by: twk
2 Replies

6. UNIX for Dummies Questions & Answers

reg putty problem

Hi, i am using PUTTY 0.51 release for connecting the Red hate linux box in SSH mode. its working fine but i can't able to scoll the scoll bar using scroll wheel inthe mouse. please suggest me how to solve it. thanks in advance. thanks and regards, ilayans (2 Replies)
Discussion started by: ilayans
2 Replies

7. Shell Programming and Scripting

How is use sselect statement o/p in insert statement.

Hi All, I am using Unix ksh script. I need to insert values to a table using the o/p from a slelect statement. Can anybody Help! My script looks like tihs. ---`sqlplus -s username/password@SID << EOF set heading off set feedback off set pages 0 insert into ${TB_NAME}_D... (2 Replies)
Discussion started by: nkosaraju
2 Replies

8. Shell Programming and Scripting

If statement - How to write a null statement

In my ksh script, if the conditions of a if statement are true, then do nothing; otherwise, execute some commands. How do I write the "do nothing" statement in the following example? Example: if (( "$x"="1" && "$y"="a" && "$z"="happy" )) then do nothing else command command fi... (3 Replies)
Discussion started by: april
3 Replies

9. Shell Programming and Scripting

Reg: Gzip

Hi , I want gzip a folder te55 which has got 3 files test1.test2,test3 the name of the gzipped folder should be te55.gz with the 3 files as test1,test2,test3 itself... Is it possible... thanks in advance sam (5 Replies)
Discussion started by: sam99
5 Replies

10. UNIX for Dummies Questions & Answers

korn shellscript execution context - exit statement

Hi all, Could someone please explain to me the shell invocation process when running a script. How do I stop the shell from logging out when it reaches an exit statement in the script? if ; then echo 'Failed to copy ${FILE}.fmx to ${J2_HOME}/dev/rsc' ... (3 Replies)
Discussion started by: richgi
3 Replies
Login or Register to Ask a Question
TCRMTTEST(1)							   Tokyo Tyrant 						      TCRMTTEST(1)

NAME
tcrmttest - test cases of the remote database API DESCRIPTION
The command `tcrmttest' is a utility for facility test under multi-thread situation. This command is used in the following format. `host' specifies the host name of the server. `rnum' specifies the number of iterations. tcrmttest write [-port num] [-tnum num] [-nr] [-rnd] [-ext name] host rnum Store records with keys of 8 bytes. They change as `00000001', `00000002'... tcrmttest read [-port num] [-tnum num] [-mul num] host Retrieve all records of the database above. tcrmttest remove [-port num] [-tnum num] host Remove all records of the database above. Options feature the following. -port num : specify the port number. -tnum num : specify the number of running threads. -nr : use the function `tcrdbputnr' instead of `tcrdbput'. -rnd : select keys at random. -ext name : call a script language extension function. -mul num : specify the number of records for the mget command. If the port number is not more than 0, UNIX domain socket is used and the path of the socket file is specified by the host parameter. This command returns 0 on success, another on failure. SEE ALSO
ttserver(1), ttultest(1), ttulmgr(1), tcrtest(1), tcrmgr(1), ttutil(3), tcrdb(3) Man Page 2010-01-20 TCRMTTEST(1)