PDA

View Full Version : Where is my "ps"? What about "Tar"?


Falcon4
10-22-2005, 01:37 AM
God, I feel like such a loser starting a new thread, but I couldn't find a single topic that answered my question - though a search for "processes" turned up a guy asking the exact question I have, with no answer!

Okay, as you may have found, I have an old-fangled SVR-2000 with OS 3.0. I've been having fun playing around with the bash shell, looking into the inner workings of the tivo and whatnot, but I seem to be missing a few programs that most people take for granted.

Like ps. You know, the thing that shows running processes (though I had originally learned about "top", I guess top is too complex for the slow TiVo?). I don't have it.
[TiVo /var/hack] # ps
bash: ps: command not found
[TiVo /var/hack] #

As such, I can't figure out what programs are running, and I can't very well "kill" anything either, can I? Though the capability is there...
[TiVo /var/hack] # kill
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
[TiVo /var/hack] #

I installed the tivobin.tgz package from tivo.stevejenkins.com, which was the base for all my wonderful hax, but it seems to be missing a few files.

Also, as far as backing up my /var/hack folder, how do I do so? It seems that cpio is incapable of traversing folders during compression (without knowing some kind of complex scripting), so where's Tar when you need it? Is there a TiVo binary for it?

Thanks! :D

Wolffpack
10-22-2005, 02:59 AM
On my SD-HDVR40 running 3.1.1b my ps is in /bin.

which ps or find / -name ps -print should tell you where the binary is located on your specific box.

BTW, my 'tar' is also in /bin.

Falcon4
10-22-2005, 03:16 AM
[TiVo /var/hack] # which ps
bash: which: command not found
[TiVo /var/hack] # find / -name ps -print
bash: find: command not found
[TiVo /var/hack] #

My /bin is in my PATH, as is--... well, let's just paste that too.

[TiVo /var/hack] # echo $PATH
/bin:/sbin:/tvbin:/devbin:/var/hack/bin

It's curious that "find" came up as "not found", too. I thought I'd used "find" before... how odd...

JJBliss
10-22-2005, 11:16 AM
Your /var partition was probably wiped and your utils are now gone.

Falcon4
10-22-2005, 08:13 PM
[TiVo /var/hack] # ls
bin rc.sysinit.author.edit.old
install.sh rc.sysinit.author.new
joerc temp
nic_install tivoftpd
rc.sysinit.author.edit tivoweb
[TiVo /var/hack] # cd bin
[TiVo /var/hack/bin] # ls
arp dd fold logname od strace touch
chgrp depmod gdbserver ls paste su tr
chown dir head ls-lR pathchk sum tty
chroot ed hostname md5sum pr tac uname
cksum egrep id mkfifo rarp tail unexpand
comm expand joe modprobe rmdir tee uniq
csplit fgrep join nice sort tivo-bin uptime
cut fmt kerneld nl split tivoftpd wc
[TiVo /var/hack/bin] #

Nup... it's all there... but I do also want to know how to back the darn thing up...

Falcon4
10-23-2005, 03:59 AM
Could someone give me an answer? Maybe someone can send me a copy of their TAR and PS? I don't know why they aren't on my TiVo - it was a perfectly standard TiVo when I first got it, and I certaintly didn't delete them.

What's curious is that TAR isn't standard, yet there's no place to download it for the TiVo. Could I, maybe, use a PPC-ported version of TAR?

Come on, I know someone out there knows... =\

Falcon4
10-23-2005, 06:37 AM
I figured it out.

I needed busybox (http://public.planetmirror.com/pub/tivo/tivotechie/busybox-0.48-tt.tgz).

Could someone have told me that the commands "ps", "tar", and countless others were part of busybox?

Hopefully others will find this answer as well... because I sure couldn't...