Link to home
Start Free TrialLog in
Avatar of William Peck
William PeckFlag for United States of America

asked on

How to keep from timing out so frequently on UNIX?

When logging in via "dzdo us - [user_name]", the server times out after like 2 minutes! I do heavy work on it sporadically, and it's like 50 times a day I'm logging on, then dzdo, etc.

could I run a small job that would simulate "pwd", so the thing does not time out? And this would run every 30s.

And I'd want to turn it off, if I am going to be doing some "vi" editing, then back on.
Avatar of David Favor
David Favor
Flag of United States of America image

I think you mean sudo rather than dzdo.

The syntax you're using looks very odd.

Try this instead...

sudo -u $user bash

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of dfke
dfke

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
First I've come across dzdo.

Learn something new every day.

Thanks dfke!
Avatar of William Peck

ASKER

I'm sure I don't have access to the configuration file, and even if I did I wouldn't want to mess with it. I'll have to talk to the Admin.

Thanks!
Avatar of dfke
dfke

Hi,

Happy to help both of you! :D

Cheers
ah, what I am looking for is crontab, run a job every X minutes ... but I don't have authority to run cron ...

https://www.garron.me/en/linux/run-cronjob-every-5-five-minutes-hours.html
When you're not allowed to use cron, ask your system administrator to add your account to the cron.allow file (assuming that your account isn't in the cron.deny file :) ).
got' cha, thank you, Gerwin!