Hi,
How to write a system calls in a script ?
> cd $HOME
> ls -ltr
thanks in advance..
Hi,
How to write a system calls in a script ?
> cd $HOME
> ls -ltr
thanks in advance..
What are you trying to do?
What have you tried?
Where are you stuck?
In a script , I wrote
system( "ls -ltr" )
which is giving me the error..
Once I run the script , it has to display all files..
Which scripting language are you using?
shell script
Which shell script? There are lots of them
"system" is a C programming language command.
Did you mean:
#include <stdio.h>
main()
{
system( "ls -1tr" );
}
Hi,
I am using Kshell script.
Using script, is it not possible to call system command ?
example: system( "ls -ltr" )
You do not have to use system()
just write
ls -ltr
inside your shell script...
Hi,
that's working fine..thanks rakeshawasthi..
Now,I am writing a script that login into remote system ( using sftp), then ,I am transferring some files from local machine to remote system,
My problem is , I am able to login into remote system, but how can I transfer that files ?
Once it is sftp, I am in remote machine login, their, I need to do put, get command,,
how can I proceed ??
What code have you tried?