Sponsored Content
Top Forums Shell Programming and Scripting Put Script on Start-up the sh Terminal Post 302818189 by vbe on Friday 7th of June 2013 05:36:32 AM
Old 06-07-2013
Code:
ran01:/home/vbe $ ssh dany1
Password: 
Last login: Fri Jun  7 11:19:54 2013 from ran01.c*i.et*
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
 Enter DISPLAY =                                                                

gzip: /export/home/vbe/terminal-logs/*.log: No such file or directory
logfile is : /export/home/vbe/terminal-logs/2013-06-07_11:20:37.21176.log

usage: script [ -a ] [ typescript ]  # So I corrected the script...
Connection to dany1 closed.
ran01:/home/vbe $ ssh dany1
Password: 
Last login: Fri Jun  7 11:20:36 2013 from ran01.c*i.et*
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
 Enter DISPLAY =                                                                

gzip: /export/home/vbe/terminal-logs/*.log: No such file or directory
logfile is : /export/home/vbe/terminal-logs/2013-06-07_11:27:51.26677.log
Script started, file is /export/home/vbe/terminal-logs/2013-06-07_11:27:51.26677.log
dany1:/export/home/vbe $ ll
sh: ll:  not found
dany1:/export/home/vbe $ r alias
alias ll='ls -al'
dany1:/export/home/vbe $ ll
total 38
drwxr-xr-x   4 vbe      sysdso         9 Jun  7 11:27 .
drwxr-xr-x  21 root     root          21 Jun 10  2011 ..
-rwx------   1 vbe      sysdso      6651 May 27 14:06 .kshrc
-rw-r--r--   1 vbe      sysdso       725 Jun  7 11:20 .profile
-rw-------   1 vbe      sysdso      3056 Jun  7 11:28 .sh_history
drwx------   2 vbe      sysdso         3 Jun  7 10:45 .ssh
-rw-r--r--   1 vbe      sysdso        50 Dec  7  2007 dsmerror.log
-rwx------   1 vbe      sysdso       419 Jun  7 11:26 script_shell
drwxr-xr-x   2 vbe      sysdso         3 Jun  7 11:27 terminal-logs
dany1:/export/home/vbe $ tail .profile
then
   echo " Enter DISPLAY = " 
   read DISPLAY
   export DISPLAY
fi
alias -x ll='ls -al'
export PS1=`uname -n`':$PWD \$ '

printf  "\033]0;$(hostname) \007"
exec $HOME/script_shell
dany1:/export/home/vbe $ exit
Script done, file is /export/home/vbe/terminal-logs/2013-06-07_11:27:51.26677.log
 exiting ...
Connection to dany1 closed.
ran01:/home/vbe $

The what will follow I have an issue to solve sorry...
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Run the start script from the terminal? Newbie Time!

Hi, How do I "run a script"? I'm trying to start up some software called ElectroServer 3, and was told I just needed to "run the start script from the terminal to get things going". From the terminal, i use cd command to change to the software's directory, and I guess the script in question is... (4 Replies)
Discussion started by: waking_bear
4 Replies

2. Linux

where to put an application if i want to start it on start up

hi i want to know the way by which i put any file somewhere and it get s started when the system restarts or bots i mean whenever my system starts that application must also start thanks (3 Replies)
Discussion started by: shukla_chanchal
3 Replies

3. UNIX for Dummies Questions & Answers

Terminal doesnt start

Hi everyone, I'm pretty new using UNIX, but a friend of mine was helping me configure the unix terminal on my mac, and he changed some stuff on the bash profile .bash_profile. Everything was going well until I shut my computer and restarted it. When I opened the terminal this time this is what... (1 Reply)
Discussion started by: thefloydpink
1 Replies

4. UNIX for Dummies Questions & Answers

How to put the STDOUT back to terminal

I have put the file descriptor 1 to file, using command exec 1>>out.txt Then I could not see any output on the screen, how could I restore the default output to terminal? :mad: Thanks (3 Replies)
Discussion started by: biglau
3 Replies

5. IP Networking

start a new terminal from a script after opening VPN

Hi all, I am trying to write a script that launch the cisco vpn client from the command line and then connects to a remote host using ssh. When i connect to the cisco vpn using vpnclient client connect the last lines of output from that client is Encryption: 168-bit 3-DES Authentication:... (0 Replies)
Discussion started by: borderblaster
0 Replies

6. Shell Programming and Scripting

how to start SCRIPT command at begin of TERMINAL?

Hello sir, I want to monitor my work on the terminal.I know we can use script command.But every time when I start the terminal, I have to type script to start it.I want to automate it. So where should I include this command so that it will start as soon as I start the terminal ???? (2 Replies)
Discussion started by: nsharath
2 Replies

7. Shell Programming and Scripting

Put a # in start of a specific line of a file

Hello Guys Please let me know how to solve the below issue I have a file like below drop table R1416.ABC1 cascade constraints; drop table R1416.ABC2 cascade constraints; drop table R1416.ABC3 cascade constraints; drop table R1416.ABC4 cascade constraints; drop table R1416.ABC5... (7 Replies)
Discussion started by: Pratik4891
7 Replies

8. Shell Programming and Scripting

How to start a shell script in a terminal console from graphic environment?

Hello. Normally when you double click on the file name, the shell script start in background. If you want to see what is going on, you must open a terminal console and start the shell within the terminal. Is it possible to start directly a shell script in a terminal console from the file... (0 Replies)
Discussion started by: jcdole
0 Replies

9. Windows & DOS: Issues & Discussions

Start X Server without starting a terminal

when I run C:\cygwin\bin\run C:\cygwin\bin\startxwin.exe it fires up a terminal by default. Can I eliminate that terminal and start the x server as a service silently and sits in my status bar just there? Thanks Jack (0 Replies)
Discussion started by: lucky7456969
0 Replies
AMANDA-SCRIPTS(7)						    Miscellanea 						 AMANDA-SCRIPTS(7)

NAME
amanda-scripts - Configuring and using the Script API DESCRIPTION
The Script API is a flexible system for invoking user-supplied scripts at various points in the execution of Amanda. This manual page describes the operation and configuration of the API. For help writing Script API scripts, see http://wiki.zmanda.com/index.php/Script_API. SCRIPTS
This section lists the scripts included with Amanda, see the individual man page for instructions on using them. For complete How-To information, consult the Amanda wiki at http://wiki.zmanda.com. o amzfs-snapshot(8), - create/destroy zfs snapshot. o script-email(8), - send email. Script properties work just like application properties: they are insensitive to case, and - (dash) and _ (underscore) may be used interchangeably. SCRIPTS OUTPUT PROPERTY
A pre-dle-amcheck, pre-dle-estimate or pre-dle-backup executed on the client can output property on stdout that are sent to the application. If the output line matches "PROPERTY str1 str2", Amanda sets a property called "str1" by the value of "str2", that property is sent to the application. SEE ALSO
amanda(8), amanda.conf(5) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHORS
Jean-Louis Martineau <martineau@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Dustin J. Mitchell <dustin@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.1 02/21/2012 AMANDA-SCRIPTS(7)
All times are GMT -4. The time now is 02:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy