Sponsored Content
Top Forums Shell Programming and Scripting cron problem for getting the time Post 302129475 by darkrainbow on Tuesday 31st of July 2007 06:43:18 AM
Old 07-31-2007
Quote:
Originally Posted by charu
give the entire path of telnet in the script that u r putting in the cron....
i mean do a 'which telnet' and find out the path of telnet. Give this in ur script...
The script has been amended
#!/bin/sh
which telnet >/tmp/abc.123
telnet 10.122.38.109 13 | tail -3 >>/tmp/abc.123

and here is the result

/usr/bin/telnet
Trying 10.122.38.109...
Connected to 10.122.38.109.
Escape character is '^]'.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

time zone and cron solaris 9

There is a posting similar to this but it does not list what resolved the issue. When I log into the server, it shows the correct timezone (edt) but when jobs run from cron, it shows GMT. Unix admin is looking for a solution. I am looking for a short term workaround to get the jobs... (2 Replies)
Discussion started by: MizzGail
2 Replies

2. Shell Programming and Scripting

Cron time format

Hi, i would like to ask if this cron is valid. 40 3-6,8-23 * * * /my command i want my job to run every hour on the 40th minute except 740am. Is this correct? (1 Reply)
Discussion started by: new2ss
1 Replies

3. UNIX for Dummies Questions & Answers

Cron Time Setup

Hi Guys, can someone help me how to setup a job in cron that runs each morning from 8-10 a.m. for every half an hour but starting from 8:50 a.m.? so far i have this: 00,30 8-10 * * * but the problem is that it starts at 8:30 instead of 8:50 Anyone? Thanks! (1 Reply)
Discussion started by: netrom
1 Replies

4. UNIX for Dummies Questions & Answers

Unable to sftp with cron (once more time...)

Hi, I have been searching for older posts and I've found many entries with identical problems, but I was not able to find the solution (or when I thought I found it, my trial didn't worked :(). Anyway, here is my question. I wrote a sftp.sh file that runs perfect from command line. It uses scp... (6 Replies)
Discussion started by: Kronos
6 Replies

5. UNIX for Advanced & Expert Users

Completion time of a cron job ?

how can we identify the task completion time which was initiated by CRON. we have 1000 of jobs whihc are runing from cron so it is not feasable to edit every cron entry or every script to add the respective code to find teh completion time. Can some one please provide a inut to find the task... (3 Replies)
Discussion started by: NIMISH AGARWAL
3 Replies

6. Shell Programming and Scripting

informix cron did not run for a certain time

currently i have this cron on my informix db 00 00,01,03,06,08,09,10,11,12,13,14,16,18,19,20,21,22,23 * * * . /informix/script.sh it was working until last february22, the last run was 1:00AM. It was suppose to run 3:00, 6:00, so on.. last night we restarted it and for some reason the cron... (2 Replies)
Discussion started by: lhareigh890
2 Replies

7. Shell Programming and Scripting

Running Cron -- same time jobs

Hi Is it possible to run different cron jobs at the same time? It appears that when I run ones at 15 min granularity that they may prevent ones running later in the day. Should crons run at same time have impact on one another? (4 Replies)
Discussion started by: rob171171
4 Replies

8. Solaris

System time and Cron time stamp not matching

On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help here is what i get when i check for system date infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies

9. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

10. UNIX for Dummies Questions & Answers

Execution problem with Cron: Script works manually but not w/Cron. Why?

Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup is shown below: #!/bin/ksh db2... (3 Replies)
Discussion started by: okonita
3 Replies
portslave(8)							     Portslave							      portslave(8)

NAME
portslave - terminal server program. SYNOPSIS
portslave [+config-file] port|- DESCRIPTION
This manual page documents briefly the portslave, program. This program is a getty replacement that will run it's own version of pppd, the user can specify their user-name via a login: prompt or PPP PAP negotiation. After the username and password have been supplied the user will be authenticated by the RADIUS protocol. OPTIONS
An optional first parameter is '+config-file' to specify an alternate config file. The default is /etc/portslave/pslave.conf . The next parameter is either the port number or '-'. The value '-' means that portslave is to use it's controlling tty as the serial device and inspect the config file to find the RADIUS port number which matches that. This was originally written for telnetd support (telnetd puts a '-' as the first command line parameter) but can be used for other things. To run over the telnet protocol put a config entry similar to the following in your inetd configuration: telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd -L /usr/sbin/portslave Then in the pslave.conf file put a series of entries specifying every pseudo-tty device (either ptyp0, ptyp1, etc or pts/1, pts/2 etc depending on which type of device naming you use). For the RADIUS port numbers which are to be used for telnet connections you must spec- ify the initchat as an empty string. If you want to run portslave over a clean TCP connection (no telnet protocol) then put the following in your inetd configuration: telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/portslave - AUTHOR
This man page was written by Russell Coker <russell@coker.com.au>. May be freely used and distributed without restriction. SEE ALSO
pslave.conf(5), pppd(8), ctlportslave(1) http://doc.coker.com.au/projects/portslave/ Russell Coker <;russell@coker.com.au> 2010.03.30 portslave(8)
All times are GMT -4. The time now is 02:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy