Sponsored Content
Full Discussion: KSH Terminal Settings
Top Forums UNIX for Dummies Questions & Answers KSH Terminal Settings Post 99487 by dstinsman on Friday 17th of February 2006 03:32:31 PM
Old 02-17-2006
OK, in this statement from passwd:

user:pswd:000:00:DevLogin:/u01/app/stg:/usr/bin/ksh

the u01/app/stg is my home directory, correct? There is no .profile in that directory.

Last edited by Perderabo; 02-17-2006 at 04:39 PM.. Reason: disable smilies for readability
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Terminal settings on solaris

I am getting the following error when try to use vi vt100: Unknown terminal type Visual needs addressable cursor or upline capability : I have checked the TERM variable which is set to vt100. What could be the problem. This is on solaris 2.8 and i am doing telnet. (2 Replies)
Discussion started by: sssow
2 Replies

2. UNIX for Dummies Questions & Answers

Terminal Video Settings

I am not a Solaris (Unix) guy so i need help. I am trying to get a Sun Ultra 5 running Solaris 8 to display the correct video for my KVM switch. I have set the CDE to 1024x768x75 and have no problem with video using this setting in CDE. When I shut down the server or boot up the server it is... (4 Replies)
Discussion started by: cchyzm
4 Replies

3. Solaris

Terminal settings from linux to solaris

When I log in from my linux workstation (CentOS4) to a solaris 8 server using SSH or telnet, the terminal settings don't seem to work well. When I tail or vi a file, I get a blank screen or no response, and I am no longer able to interact with the session. I have to type the escape sequence to... (2 Replies)
Discussion started by: tjlst15
2 Replies

4. Shell Programming and Scripting

ksh script as a login shell return "no controlling terminal"

I have created a ksh shell script and used it as a login shell for a user. </etc/passwd> lramirev:x:111:200:Luis:/export/home/menush:/usr/local/menush/menush My shell script is like this: </usr/local/menush/menush> #!/bin/ksh # if ] then . $HOME/.profile fi ... (8 Replies)
Discussion started by: lramirev
8 Replies

5. OS X (Apple)

Terminal.app keeps creating copies of my settings files

Under Leopard, I like to conveniently open Terminal windows onto remote systems. I've created several settings files in Terminal, one for each remote system that I want to access. To open window, I right-click on the Terminal icon in the Dock, expand the "New Window" menu item, and select the... (0 Replies)
Discussion started by: siemsen
0 Replies

6. Shell Programming and Scripting

Terminal is closing on exit in ksh

hi while executing the following script, my terminal window is getting closed if I enter a invalid option. I want the script should go back the the command prompt. how to do achive it. i execute the script as . ./test #! /usr/bin/ksh Printf " Type of Installer : \n\t\t 1. Whole Build... (3 Replies)
Discussion started by: vij_krr
3 Replies

7. Shell Programming and Scripting

What settings are required for login to CVS using Terminal in Mac OS X?

Hi All, I want to login to CVS using terminal. I am executing the following command in the terminal :- export CVSROOT=: pserver:ags_rd@istcvs.corp.apple.com:/istcvs/CVSHOME cvs login But i get the following error : Afreens-iMac:buildTest Afreen$ export CVSROOT=:... (3 Replies)
Discussion started by: Afreen
3 Replies

8. OS X (Apple)

What settings are required for login to CVS using Terminal in Mac OS X?

Hi All, I want to login to CVS using terminal. I am executing the following command in the terminal :- export CVSROOT=: pserver:ags_rd@istcvs.corp.apple.com:/istcvs/CVSHOME cvs login But i get the following error : Afreens-iMac:buildTest Afreen$ export CVSROOT=:... (1 Reply)
Discussion started by: Afreen
1 Replies

9. UNIX for Dummies Questions & Answers

Terminal emulation settings help rlogin AIX to SCO

I use a program called TinyTerm to access our AIX machine. It works fine except for when I rlogin into our SCO unix server. Backspace doesn't delete, ctrl-c doesn't work (delete key does same thing), and the most annoying thing is vi acts very wierd. I have to press the down arrow like 3 times to... (11 Replies)
Discussion started by: herot
11 Replies

10. Shell Programming and Scripting

Print Terminal Output Exactly how it Appears in the Terminal to a New Text File

Hello All, I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly. Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
Data::Serializer::Cookbook(3pm) 			User Contributed Perl Documentation			   Data::Serializer::Cookbook(3pm)

NAME
Cookbook - Examples of how to use Data::Serializer DESCRIPTION
Data::Serializer::Cookbook is a collection of solutions for using Data::Serializer. CONVENTIONS
Unless otherwise specified, all examples can be assumed to begin with: use Data::Serializer; my $serializer = Data::Serializer->new(); Some examples will show different arguments to the new method, where specified simply use that line instead of the simple form above. CONVENTIONS for Raw Access Fort hose who want a straight pass through to the underlying serializer, where nothing else is done (no encoding, encryption, compression, etc) there is Data::Serializer::Raw(3). These begin like this: use Data::Serializer::Raw; my $raw_serializer = Data::Serializer::Raw->new(); Encrypting your data You wish to encrypt your data structure, so that it can only be decoded by someone who shares the same key. Solution $serializer->secret('mysecret'); my $encrypted_hashref = $serializer->serializer($hash); ... (in other program) ... $serializer->secret('mysecret'); my $clear_hash = $serializer->deserializer($encrypted_hash); Note: You will have to have the Crypt::CBC module installed for this to work. Compressing your data You wish to compress your data structure to cut down on how much disk space it will take up. Solution $serializer->compress(1); my $compressed_hashref = $serializer->serializer($hash); ... (in other program) ... my $clear_hash = $serializer->deserializer($compressed_hash); Note: You will have to have the Compress::Zlib module installed for this to work. Your mileage will vary dramatically depending on what serializer you use. Some serializers are already fairly compact. You want to read in data serialized outside of Data::Serializer You need to write a program that can read in data serialized in a format other than Data::Serializer. For example you need to be able to be able to process data serialized by XML::Dumper. Solution use Data::Serializer::Raw; my $xml_raw_serializer = Data::Serializer::Raw->(serializer => 'XML::Dumper'); my $hash_ref = $xml_raw_serializer->deserialize($xml_data); You want to write serialized data in a form understood outside of Data::Serializer You need to write a program that can write out data in a format other than Data::Serializer. Or said more generically you need to write out data in the format native to the underlying serializer. For our example we will be exporting data using XML::Dumper format. Solution ues Data::Serializer::Raw; my $xml_raw_serializer = Data::Serializer::Raw->(serializer => 'XML::Dumper'); my $xml_data = $xml_raw_serializer->serialize($hash_ref); You want to convert data between two different serializers native formats You have data serialized by php that you want to convert to xml for use by other programs. Solution use Data::Serializer::Raw; my $xml_raw_serializer = Data::Serializer::Raw->(serializer => 'XML::Dumper'); my $php_raw_serializer = Data::Serializer::Raw->(serializer => 'PHP::Serialization'); my $hash_ref = $php_raw_serializer->deserialize($php_data); my $xml_data = $xml_raw_serializer->serialize($hash_ref); Keeping data persistent between executions of a program. You have a program that you run every 10 minutes, it uses SNMP to pull some counters from one of your routers. You want your program to keep the counters from the last run so that it can see how much traffic has passed over a link since it last ran. Solution # path to store our serialized data # be paranoid, use full paths my $last_run_datafile = '/full/path/to/file/lastrun.data'; #We keep our data as a hash reference my $last_data = $serializer->retrieve($last_run_datafile); #Pull in our new data through 'pull_data()'; my $new_data = query_router($router); #run comparison code run_comparison($last_data,$new_data); $serializer->store($new_data); AUTHOR
Neil Neely <neil@neely.cx>. COPYRIGHT
Copyright (c) 2001-2011 Neil Neely. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
Data::Serializer(3) Data::Serializer::Raw(3) perl v5.12.4 2011-08-16 Data::Serializer::Cookbook(3pm)
All times are GMT -4. The time now is 05:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy