Hi,
Your description is not very detailed, but here is an example for calling a script (in Linux) and passing it arguments
On the command line:
Rscript myScript.R argA agrB argC
In the R-script itself:
#!/usr/bin/env Rscript
args = commandArgs(trailingOnly = TRUE)
a = args[1]
b = args[2]
c = args[3]
... here goes rest of code ...
Hope this helps, if not, please provide more details
PJ